
package com.battlelancer.seriesguide.items;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author trottmann.uwe
 */
public class SearchResult implements Parcelable {

    public String tvdbid;

    public String title;

    public String overview;

    public String poster;

    public boolean isAdded;

    public static final Parcelable.Creator<SearchResult> CREATOR = new Parcelable.Creator<SearchResult>() {
        public SearchResult createFromParcel(Parcel in) {
            return new SearchResult(in);
        }

        public SearchResult[] newArray(int size) {
            return new SearchResult[size];
        }
    };

    public SearchResult() {
    }

    public SearchResult(Parcel in) {
        tvdbid = in.readString();
        title = in.readString();
        overview = in.readString();
        poster = in.readString();
        isAdded = in.readInt() == 1 ? true : false;
    }

    public SearchResult copy() {
        SearchResult copy = new SearchResult();
        copy.tvdbid = this.tvdbid;
        copy.title = this.title;
        copy.overview = this.overview;
        copy.poster = this.poster;
        copy.isAdded = this.isAdded;
        return copy;
    }

    @Override
    public int describeContents() {
        return hashCode();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(tvdbid);
        dest.writeString(title);
        dest.writeString(overview);
        dest.writeString(poster);
        dest.writeInt(isAdded == true ? 1 : 0);
    }

}

@@ -1,9 +1,610 @@
+/*%0A * Copyright 2011 Uwe Trottmann%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * %0A */
 %0A
-
 package 
@@ -708,29 +708,99 @@
 %0A * 
-@author trottmann.uwe
+Holds a search result, used later for adding this show. Supplying a poster URL is optional.
 %0A */

Clear up SearchResult purpose, add license.