Android Open Source - LinuxZaSve_mobile Lzs Rest Response






From Project

Back to project page LinuxZaSve_mobile.

License

The source code is released under:

Apache License

If you think the Android project LinuxZaSve_mobile listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.linuxzasve.mobile.rest.model;
//from w  w  w  .j  av  a 2s  .  c  o m
import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;


public class LzsRestResponse implements Parcelable {
    private String status;
    private int count;
    private int count_total;
    private int pages;
    private ArrayList<Post> posts;
    private Post post;
    private String nonce;

    public String getNonce() {
        return nonce;
    }

    public void setNonce(String nonce) {
        this.nonce = nonce;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(final String status) {
        this.status = status;
    }

    public int getCount() {
        return count;
    }

    public void setCount(final int count) {
        this.count = count;
    }

    public int getCount_total() {
        return count_total;
    }

    public void setCount_total(final int count_total) {
        this.count_total = count_total;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(final int pages) {
        this.pages = pages;
    }

    public ArrayList<Post> getPosts() {
        return posts;
    }

    public void setPosts(final ArrayList<Post> posts) {
        this.posts = posts;
    }


    public Post getPost() {
        return post;
    }

    public void setPost(Post post) {
        this.post = post;
    }

    LzsRestResponse() {
    }

    // parcelable

    public LzsRestResponse(Parcel in) {
        status = in.readString();
        count = in.readInt();
        count_total = in.readInt();
        pages = in.readInt();
        in.readList(posts, Post.class.getClassLoader());
        post = in.readParcelable(Post.class.getClassLoader());
        nonce = in.readString();
    }

    public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
        public LzsRestResponse createFromParcel(Parcel in) {
            return new LzsRestResponse(in);
        }

        public LzsRestResponse[] newArray(int size) {
            return new LzsRestResponse[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int flags) {
        parcel.writeString(status);
        parcel.writeInt(count);
        parcel.writeInt(count_total);
        parcel.writeInt(pages);
        parcel.writeList(posts);
        parcel.writeParcelable(post, flags);
        parcel.writeString(nonce);
    }

}




Java Source Code List

com.linuxzasve.mobile.ActivityHelper.java
com.linuxzasve.mobile.MainActivity.java
com.linuxzasve.mobile.adapters.ArticleListArrayAdapter.java
com.linuxzasve.mobile.adapters.CommentListArrayAdapter.java
com.linuxzasve.mobile.db.Comment.java
com.linuxzasve.mobile.emote.EmoticonDrawables.java
com.linuxzasve.mobile.fragments.ArticleDisplayFragment.java
com.linuxzasve.mobile.fragments.ArticleListFragmentType.java
com.linuxzasve.mobile.fragments.ArticleListFragment.java
com.linuxzasve.mobile.fragments.CommentEditFragment.java
com.linuxzasve.mobile.fragments.CommentListFragment.java
com.linuxzasve.mobile.googl.GooGlService.java
com.linuxzasve.mobile.googl.GoogleUrlShortener.java
com.linuxzasve.mobile.googl.model.GooGlRequest.java
com.linuxzasve.mobile.googl.model.GooGlResponse.java
com.linuxzasve.mobile.rest.LzsRestGateway.java
com.linuxzasve.mobile.rest.LzsRestService.java
com.linuxzasve.mobile.rest.model.Attachment.java
com.linuxzasve.mobile.rest.model.Author.java
com.linuxzasve.mobile.rest.model.Category.java
com.linuxzasve.mobile.rest.model.Comment.java
com.linuxzasve.mobile.rest.model.CustomFields.java
com.linuxzasve.mobile.rest.model.DetailedImage.java
com.linuxzasve.mobile.rest.model.Image.java
com.linuxzasve.mobile.rest.model.LzsRestResponse.java
com.linuxzasve.mobile.rest.model.Post.java
com.linuxzasve.mobile.rest.model.Tag.java
com.linuxzasve.mobile.rest.model.Thumbnail.java
com.linuxzasve.mobile.timthumb.TimThumb.java