Created
August 16, 2015 16:34
-
-
Save moizest89/d544d3d8cb4247162a00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package models; | |
import android.os.Parcel; | |
import android.os.Parcelable; | |
public class ArticlesPhotosModel implements Parcelable { | |
public static final String CN_PHOTOS = "photos"; | |
public static final String CN_RETINA3X = "retina3x"; | |
public static final String CN_RETINA2X = "retina2x"; | |
public static final String CN_NORMAL = "normal"; | |
public static final String CN_PINTEREST = "pinterest"; | |
public static final String CN_PINTEREST_RETINA = "pinterest_retina"; | |
public static final String CN_DETAIL = "detail"; | |
private String retina3x = ""; | |
private String retina2x = ""; | |
private String normal = ""; | |
private String pinterest = ""; | |
private String pinterest_retina = ""; | |
private String detail = ""; | |
public ArticlesPhotosModel() { | |
} | |
protected ArticlesPhotosModel(Parcel in) { | |
this.retina3x = in.readString(); | |
this.retina2x = in.readString(); | |
this.normal = in.readString(); | |
this.pinterest = in.readString(); | |
this.pinterest_retina = in.readString(); | |
this.detail = in.readString(); | |
} | |
public String getDetail() { | |
return detail; | |
} | |
public void setDetail(String detail) { | |
this.detail = detail; | |
} | |
public String getPinterest_retina() { | |
return pinterest_retina; | |
} | |
public void setPinterest_retina(String pinterest_retina) { | |
this.pinterest_retina = pinterest_retina; | |
} | |
public String getPinterest() { | |
return pinterest; | |
} | |
public void setPinterest(String pinterest) { | |
this.pinterest = pinterest; | |
} | |
public String getNormal() { | |
return normal; | |
} | |
public void setNormal(String normal) { | |
this.normal = normal; | |
} | |
public String getRetina2x() { | |
return retina2x; | |
} | |
public void setRetina2x(String retina2x) { | |
this.retina2x = retina2x; | |
} | |
public String getRetina3x() { | |
return retina3x; | |
} | |
public void setRetina3x(String retina3x) { | |
this.retina3x = retina3x; | |
} | |
public static final Creator<ArticlesPhotosModel> CREATOR = new Creator<ArticlesPhotosModel>() { | |
@Override | |
public ArticlesPhotosModel createFromParcel(Parcel in) { | |
return new ArticlesPhotosModel(in); | |
} | |
@Override | |
public ArticlesPhotosModel[] newArray(int size) { | |
return new ArticlesPhotosModel[size]; | |
} | |
}; | |
@Override | |
public int describeContents() { | |
return 0; | |
} | |
@Override | |
public void writeToParcel(Parcel parcel, int i) { | |
parcel.writeString(getDetail()); | |
parcel.writeString(getPinterest_retina()); | |
parcel.writeString(getPinterest()); | |
parcel.writeString(getNormal()); | |
parcel.writeString(getRetina2x()); | |
parcel.writeString(getRetina3x()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment