Back to project page FisgoDroid.
The source code is released under:
The smiley icons bundled with this application belong to Meneame.NET and are licensed under the Creative Commons by-sa 3.0 license. For more information, please visit http://creativecommons.org/licens...
If you think the Android project FisgoDroid 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 net.meneame.fisgodroid; /*from ww w . j av a2 s . c om*/ import java.util.Date; import android.text.format.DateFormat; public class ChatMessage { private Date when; private String user; private String message; private ChatType type; private String icon; private String userid; public ChatMessage(ChatMessage copyFrom) { when = copyFrom.when; user = copyFrom.user; message = copyFrom.message; type = copyFrom.type; icon = copyFrom.icon; userid = copyFrom.userid; } public ChatMessage(Date when, String user, String userid, String message, ChatType type, String icon) { setWhen(when); setUser(user); setUserid(userid); setMessage(message); setType(type); setIcon(icon); } public Date getWhen() { return when; } public void setWhen(Date when) { this.when = when; } public String getUser() { return user; } public void setUser(String user) { this.user = user; } public String getUserid() { return userid; } public void setUserid(String userid) { this.userid = userid; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public ChatType getType() { return type; } public void setType(ChatType type) { this.type = type; } public String getIcon() { return icon; } public void setIcon(String icon) { this.icon = icon; } public String logify() { StringBuilder logString = new StringBuilder(); logString.append(DateFormat.format("kk:mm:ss ", this.when)); logString.append(this.user); logString.append(": " + this.message); return logString.toString(); } }