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);

	}

}

转载于:https://my.oschina.net/woshicheng/blog/135296

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值