MessageModel.java :  » Blog-Twitter » iamblogger » com » mblog » model » Android Open Source

Android Open Source » Blog Twitter » iamblogger 
iamblogger » com » mblog » model » MessageModel.java
package com.mblog.model;

import android.graphics.Bitmap;
import android.location.Location;

/**
 * Message model/data keeper
 * @author aliaksandr_spichakou
 *
 */
public class MessageModel {
  /**
   * Image bitmap
   */
  private Bitmap mageBitmap;
  /**
   * Message text
   */
  private String txt;
  /**
   * Coordinate location
   */
  private Coordinate location;
  
  /**
   * Link to image
   */
  private String url;

  public Bitmap getMageBitmap() {
    return mageBitmap;
  }

  public void setMageBitmap(Bitmap mageBitmap) {
    this.mageBitmap = mageBitmap;
    // clear image URL
    setUrl(null);
  }

  public String getTxt() {
    return txt;
  }

  public void setTxt(String txt) {
    this.txt = txt;
  }

  public Location getLocation() {
    /*final Coordinate tmpCoord = new Coordinate(null);
    tmpCoord.setLatitude(-122.084095d);
    tmpCoord.setLongitude(37.422006d);
    return tmpCoord;*/
    return location;
  }

  public void setLocation(Coordinate location) {
    this.location = location;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }
  
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.