Back to project page MySms.
The source code is released under:
Apache License
If you think the Android project MySms listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.henningta.mysms; //from w w w.j a v a 2 s .c o m public class Message { public static final int STATUS_SENDING = 0; public static final int STATUS_SENT = 1; public static final int STATUS_DELIVERED = 2; public static final int STATUS_RECEIVED = 3; public static final int STATUS_FAILED = 4; private String source; private String text; private long time; private int status; /*public Message(String source, String text, long time, int status) { this(Settings.NOT_SET, text, time, status, parentId); }*/ public Message(String source, String text, long time, int status) { this.source = source; this.text = text; this.time = time; this.status = status; } /** * Return message id */ public String getSource() { return source; } /** * Return message text */ public String getText() { return text; } /** * Return sent/received time */ public long getTime() { return time; } /** * Return message status */ public int getStatus() { return status; } /** * Set message status */ public void setStatus(int status) { this.status = status; } }