Android Open Source - RssReader Rss Item






From Project

Back to project page RssReader.

License

The source code is released under:

MIT License

If you think the Android project RssReader 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.vicmns.rssreader.models;
/*  w  ww.j  a v a2s. c  o  m*/
import java.util.Date;

import android.os.Parcel;
import android.os.Parcelable;

public class RssItem implements Parcelable {
  private String title;
  private String link;
  private String description;
  private String imageURL;
  
  private Date pubDate;
  
  public RssItem() {
    
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;

  }

  public String getLink() {
    return link;
  }

  public void setLink(String link) {
    this.link = link;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public Date getPubDate() {
    return pubDate;
  }

  public void setPubDate(Date pubDate) {
    this.pubDate = pubDate;
  }

  public String getImageURL() {
    return imageURL;
  }

  public void setImageURL(String imageURL) {
    this.imageURL = imageURL;
  }

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

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(title);
    dest.writeString(link);
    dest.writeString(description);
    dest.writeString(imageURL);
    
    dest.writeLong(pubDate != null ? pubDate.getTime() : -1L);
  }

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

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

  private RssItem(Parcel in) {
    title = in.readString();
        link = in.readString();
        description = in.readString();
        imageURL = in.readString();
        long tmpPubDate = in.readLong();
        pubDate = tmpPubDate != -1 ? new Date(tmpPubDate) : null;
  }
}




Java Source Code List

com.vicmns.rssreader.activities.MainActivity.java
com.vicmns.rssreader.activities.RssItemDetailsActivity.java
com.vicmns.rssreader.adapters.RssItemsAdapter.java
com.vicmns.rssreader.app.RssReaderApplication.java
com.vicmns.rssreader.http.GetRssItems.java
com.vicmns.rssreader.http.GetWidgetRssItems.java
com.vicmns.rssreader.http.SimpleXmlRequest.java
com.vicmns.rssreader.interfaces.GetRssItemsCallbacks.java
com.vicmns.rssreader.interfaces.HttpConsumerCallbacks.java
com.vicmns.rssreader.interfaces.ListOverlayLayoutCallbacks.java
com.vicmns.rssreader.models.RssItem.java
com.vicmns.rssreader.models.RssItems.java
com.vicmns.rssreader.services.GetRssItemsService.java
com.vicmns.rssreader.views.ListOverlayLayoutView.java
com.vicmns.rssreader.views.SquareImageView.java
com.vicmns.rssreader.widget.WidgetListProvider.java
com.vicmns.rssreader.widget.WidgetProvider.java
com.vicmns.rssreader.widget.WidgetService.java
fr.castorflex.android.smoothprogressbar.ColorsShape.java
fr.castorflex.android.smoothprogressbar.ContentLoadingSmoothProgressBar.java
fr.castorflex.android.smoothprogressbar.SmoothProgressBarUtils.java
fr.castorflex.android.smoothprogressbar.SmoothProgressBar.java
fr.castorflex.android.smoothprogressbar.SmoothProgressDrawable.java
org.robolectric.shadows.ShadowSupportMenuInflater.java