Android Open Source - PicPosterComplete Pic Post Model






From Project

Back to project page PicPosterComplete.

License

The source code is released under:

Apache License

If you think the Android project PicPosterComplete 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 ca.ualberta.cs.picposter.model;
//  w ww.  j  a va  2 s  . c o m
import java.util.Date;

import android.graphics.Bitmap;

/**
 * Represents a single Pic Post, which includes a picture, some text, and a timestamp.
 * @author zjullion
 */
public class PicPostModel {
  
  
  private Bitmap picture;
  private String text;
  private Date timestamp;
  
  
  protected PicPostModel(Bitmap pic, String text, Date timestamp) {
    this.picture = pic;
    this.text = text;
    this.timestamp = timestamp;
  }
  
  
  public Bitmap getPicture() {
    return this.picture;
  }
  
  
  public String getText() {
    return this.text;
  }
  
  
  public Date getTimestamp() {
    return this.timestamp;
  }
}




Java Source Code List

ca.ualberta.cs.picposter.PicPosterActivity.java
ca.ualberta.cs.picposter.controller.PicPosterController.java
ca.ualberta.cs.picposter.model.PicPostModel.java
ca.ualberta.cs.picposter.model.PicPosterModelList.java
ca.ualberta.cs.picposter.network.BitmapJsonConverter.java
ca.ualberta.cs.picposter.network.ElasticSearchOperations.java
ca.ualberta.cs.picposter.network.ElasticSearchResponse.java
ca.ualberta.cs.picposter.network.ElasticSearchSearchResponse.java
ca.ualberta.cs.picposter.network.Hits.java
ca.ualberta.cs.picposter.view.PicPostModelAdapter.java