package parser; import android.os.Parcel;import android.os.Parcelable; import java.util.ArrayList;import java.util.List; /** * Created by sphere65 on 8/6/17. */ public class GetMissingTags implements Parcelable { List<MissiongTagData> missing_tag; public List<MissiongTagData> getMissing_tag() { return missing_tag; } public void setMissing_tag(List<MissiongTagData> missing_tag) { this.missing_tag = missing_tag; } public GetMissingTags(){} protected GetMissingTags(Parcel in) { missing_tag = new ArrayList<MissiongTagData>(); in.readTypedList(missing_tag, MissiongTagData.CREATOR); } public static final Creator<GetMissingTags> CREATOR = new Creator<GetMissingTags>() { @Override public GetMissingTags createFromParcel(Parcel in) { return new GetMissingTags(in); } @Override public GetMissingTags[] newArray(int size) { return new GetMissingTags[size]; } }; @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel parcel, int i) { } public static class MissiongTagData implements Parcelable { String tag_no = ""; String count=""; public String getCount() { return count; } public void setCount(String count) { this.count = count; } public String getTag_no() { return tag_no; } public void setTag_no(String tag_no) { this.tag_no = tag_no; } public MissiongTagData(){} protected MissiongTagData(Parcel in) { tag_no = in.readString(); } public static final Creator<MissiongTagData> CREATOR = new Creator<MissiongTagData>() { @Override public MissiongTagData createFromParcel(Parcel in) { return new MissiongTagData(in); } @Override public MissiongTagData[] newArray(int size) { return new MissiongTagData[size]; } }; @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel parcel, int i) { parcel.writeString(tag_no); } } }
Monday, 25 September 2017
Parser class
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment