Android Open Source - VolleyJoomla J Article






From Project

Back to project page VolleyJoomla.

License

The source code is released under:

Apache License

If you think the Android project VolleyJoomla 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 de.ewackernagel.volley.joomla.pojos;
/*  w w  w.  ja  v  a 2  s  . c  om*/
import android.os.Parcel;
import android.os.Parcelable;

public class JArticle implements Parcelable {
  public static final Parcelable.Creator<JArticle> CREATOR = new Parcelable.Creator<JArticle>() {
    @Override
    public JArticle createFromParcel(Parcel source) {
      return new JArticle( source );
    }

    @Override
    public JArticle[] newArray(int size) {
      return new JArticle[ size ];
    }
  };
  
  private JArticle( Parcel source ) {
    readFromParcel( source );
  }
  
  private long id;
  private String title;
  private long cat_id;
  private String category;
  private int state;
  private String date_published;
  private String introtext;
  private String fulltext;
  
  public long getId() {
    return id;
  }
  
  public String getTitle() {
    return title;
  }
  
  public long getCategoryId() {
    return cat_id;
  }
  
  public String getCategoryName() {
    return category;
  }
  
  public int getState() {
    return state;
  }
  
  public String getPublishingDate() {
    return date_published;
  }
  
  public String getIntroText() {
    return introtext;
  }
  
  public String getFullText() {
    return fulltext;
  }
  
  @Override
  public String toString() {
    return new StringBuilder()
      .append( "JArticle [ " )
      .append( "id=" ).append( id ).append(", ")
      .append( "title=" ).append( title ).append(", ")
      .append( "categoryId=" ).append( cat_id ).append(", ")
      .append( "category=" ).append( category ).append(", ")
      .append( "state=" ).append( state ).append(", ")
      .append( "publishingDate=" ).append( date_published ).append(", ")
      .append( "introText=" ).append( introtext ).append(", ")
      .append( "fullText=" ).append( fulltext ).append(", ")
      .append( " ]" )
      .toString();
  }

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

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong( id );
    dest.writeString(title);
    dest.writeLong(cat_id);
    dest.writeString(category);
    dest.writeInt(state);
    dest.writeString(date_published);
    dest.writeString(introtext);
    dest.writeString(fulltext);
  }
  
  private void readFromParcel( Parcel source ) {
    id = source.readLong();
    title = source.readString();
    cat_id = source.readLong();
    category = source.readString();
    state = source.readInt();
    date_published = source.readString();
    introtext = source.readString();
    fulltext = source.readString();
  }
}




Java Source Code List

de.ewackernagel.volley.joomla.GsonJRequest.java
de.ewackernagel.volley.joomla.JArticleDetailsRequest.java
de.ewackernagel.volley.joomla.JArticlesRequest.java
de.ewackernagel.volley.joomla.JCategoriesRequest.java
de.ewackernagel.volley.joomla.JLoginRequest.java
de.ewackernagel.volley.joomla.JRequest.java
de.ewackernagel.volley.joomla.pojos.JArticle.java
de.ewackernagel.volley.joomla.pojos.JCategory.java
de.ewackernagel.volley.joomla.pojos.JConfiguration.java
de.ewackernagel.volley.joomla.pojos.JWebsite.java