Android Open Source - T-CEP-Alert Alert






From Project

Back to project page T-CEP-Alert.

License

The source code is released under:

MIT License

If you think the Android project T-CEP-Alert 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 org.ruscoe.tcepalert.models;
//from  w  w  w. j  a  v a 2  s  .com
/**
 * Represents a T-CEP alert either received from the server or
 * locally cached.
 * 
 * @author Dan Ruscoe
 */
public class Alert
{
  public String alertId = "";
  public String title ="";
  public String firstPostedDate = "";
  public String lastUpdatedDate = "";
  public String message = "";
  public long createdTimestamp = 0;
  public long updatedTimestamp = 0;
  
    @Override
    public String toString()
    {
        return "alertId: " + alertId + " title: " + title;
    }

  public String getAlertId()
  {
    return alertId;
  }

  public void setAlertId(String alertId)
  {
    this.alertId = alertId;
  }

  public String getTitle()
  {
    return title;
  }

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

  public String getFirstPostedDate()
  {
    return firstPostedDate;
  }

  public void setFirstPostedDate(String firstPostedDate)
  {
    this.firstPostedDate = firstPostedDate;
  }

  public String getLastUpdatedDate()
  {
    return lastUpdatedDate;
  }

  public void setLastUpdatedDate(String lastUpdatedDate)
  {
    this.lastUpdatedDate = lastUpdatedDate;
  }

  public String getMessage()
  {
    return message;
  }

  public void setMessage(String message)
  {
    this.message = message;
  }

  public long getCreatedTimestamp()
  {
    return createdTimestamp;
  }

  public void setCreatedTimestamp(long createdTimestamp)
  {
    this.createdTimestamp = createdTimestamp;
  }

  public long getUpdatedTimestamp()
  {
    return updatedTimestamp;
  }

  public void setUpdatedTimestamp(long updatedTimestamp)
  {
    this.updatedTimestamp = updatedTimestamp;
  }
}




Java Source Code List

org.ruscoe.tcepalert.AboutActivity.java
org.ruscoe.tcepalert.AlertAdapter.java
org.ruscoe.tcepalert.AlertUpdateCheck.java
org.ruscoe.tcepalert.AlertView.java
org.ruscoe.tcepalert.AlertsActivity.java
org.ruscoe.tcepalert.LatestAlertsActivity.java
org.ruscoe.tcepalert.LinksActivity.java
org.ruscoe.tcepalert.MainActivity.java
org.ruscoe.tcepalert.SettingsActivity.java
org.ruscoe.tcepalert.constants.Constants.java
org.ruscoe.tcepalert.dao.AlertDAO.java
org.ruscoe.tcepalert.dao.AlertUpdateData.java
org.ruscoe.tcepalert.dao.CachedAlertData.java
org.ruscoe.tcepalert.dao.SettingsData.java
org.ruscoe.tcepalert.models.Alert.java
org.ruscoe.tcepalert.web.NetworkActivity.java
org.ruscoe.tcepalert.web.WebService.java