android 序列号

package com.cds2.appraisal.photos.model;

import java.io.Serializable;

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

/****
 * 照片的对象
 * 
 * @author 
 * @date 2013-5-28
 */
public class PhotoModel implements Parcelable {

	private String picName;
	private String picPath;
	private String isFour;
	private String photoType;

	public PhotoModel() {
		super();

	}

	public PhotoModel(String picName, String picPath, String isFour, String photoType) {
		super();
		this.picName = picName;
		this.picPath = picPath;
		this.isFour = isFour;
		this.photoType = photoType;
	}

	public String getPhotoType() {
		return photoType;
	}

	public void setPhotoType(String photoType) {
		this.photoType = photoType;
	}

	public String getIsFour() {
		return isFour;
	}

	public void setIsFour(String isFour) {
		this.isFour = isFour;
	}

	public String getPicName() {
		return picName;
	}

	public void setPicName(String picName) {
		this.picName = picName;
	}

	public String getPicPath() {
		return picPath;
	}

	public void setPicPath(String picPath) {
		this.picPath = picPath;
	}

	@Override
	public String toString() {
		return "PhotoModel [picName=" + picName + ", picPath=" + picPath + ", isFour=" + isFour + ", photoType=" + photoType + "]";
	}

	public static final Parcelable.Creator<PhotoModel> CREATOR = new Creator<PhotoModel>() {
		@Override
		public PhotoModel[] newArray(int size) {

			return new PhotoModel[size];
		}

		@Override
		public PhotoModel createFromParcel(Parcel source) {
			PhotoModel reportdaybean = new PhotoModel();
			reportdaybean.isFour = source.readString();
			reportdaybean.photoType = source.readString();
			reportdaybean.picName = source.readString();
			reportdaybean.picPath = source.readString();
			return reportdaybean;
		}
	};

	@Override
	public int describeContents() {

		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(picName);
		dest.writeString(picPath);
		dest.writeString(isFour);
		dest.writeString(photoType);

	}

}

你可能感兴趣的:(android,序列)