Skip to content

Instantly share code, notes, and snippets.

@moizest89
Created August 16, 2015 16:35
Show Gist options
  • Save moizest89/7f5b029e239a96bdb777 to your computer and use it in GitHub Desktop.
Save moizest89/7f5b029e239a96bdb777 to your computer and use it in GitHub Desktop.
package models;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by @moizest89 in SV on 8/14/15.
*/
public class ArticlesVideosModel implements Parcelable{
public static final String CN_ARTICLE_VIDEOS = "article_videos";
public static final String CN_HLS_URL = "hls_url";
public static final String CN_URL = "url";
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";
private String hls_url = "";
private String url = "";
private String retina3x = "";
private String retina2x = "";
private String normal = "";
private String pinterest = "";
private String pinterest_retina = "";
public ArticlesVideosModel() {
}
protected ArticlesVideosModel(Parcel in) {
this.hls_url = in.readString();
this.url = in.readString();
this.retina3x = in.readString();
this.retina2x = in.readString();
this.normal = in.readString();
this.pinterest = in.readString();
this.pinterest_retina = in.readString();
}
public String getHls_url() {
return hls_url;
}
public void setHls_url(String hls_url) {
this.hls_url = hls_url;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getRetina3x() {
return retina3x;
}
public void setRetina3x(String retina3x) {
this.retina3x = retina3x;
}
public String getRetina2x() {
return retina2x;
}
public void setRetina2x(String retina2x) {
this.retina2x = retina2x;
}
public String getNormal() {
return normal;
}
public void setNormal(String normal) {
this.normal = normal;
}
public String getPinterest() {
return pinterest;
}
public void setPinterest(String pinterest) {
this.pinterest = pinterest;
}
public String getPinterest_retina() {
return pinterest_retina;
}
public void setPinterest_retina(String pinterest_retina) {
this.pinterest_retina = pinterest_retina;
}
public static final Creator<ArticlesVideosModel> CREATOR = new Creator<ArticlesVideosModel>() {
@Override
public ArticlesVideosModel createFromParcel(Parcel in) {
return new ArticlesVideosModel(in);
}
@Override
public ArticlesVideosModel[] newArray(int size) {
return new ArticlesVideosModel[size];
}
};
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeString(getHls_url());
parcel.writeString(getUrl());
parcel.writeString(getRetina3x());
parcel.writeString(getRetina2x());
parcel.writeString(getNormal());
parcel.writeString(getPinterest());
parcel.writeString(getPinterest_retina());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment