Android Open Source - SimpleAndroidChat Chat Msg






From Project

Back to project page SimpleAndroidChat.

License

The source code is released under:

GNU General Public License

If you think the Android project SimpleAndroidChat 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 com.anderscore.simpleandroidchat;
/*from  ww  w.  j  a v  a 2 s .  co m*/
public class ChatMsg {
  private int id;
  private String user;
  private int userId;
  private boolean incomming;
  private String msg;
  
  
  public ChatMsg(int id, String user, int userId, boolean incomming, String msg) {
    setId(id);
    setUser(user);
    setIncomming(incomming);
    setMsg(msg);
    setUserId(userId);
  }
  
  
  public ChatMsg(String user, int userId, boolean incomming, String msg) {
    setUser(user);
    setIncomming(incomming);
    setMsg(msg);
    setUserId(userId);
  }
  
  
  public ChatMsg(String user, boolean incomming, String msg) {
    setUser(user);
    setIncomming(incomming);
    setMsg(msg);
  }
  
  
  private void setUser(String user) {
    this.user = user;
  }
  
  private void setIncomming(boolean incomming) {
    this.incomming = incomming;
  }
  
  private void setMsg(String msg) {
    this.msg = msg;
  }
  
  public String getUser() {
    return user;
  }
  
  public boolean isIncomming() {
    return incomming;
  }
  
  public String getMsg() {
    return msg;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public int getUserId() {
    return userId;
  }

  public void setUserId(int userId) {
    this.userId = userId;
  }  
}




Java Source Code List

com.anderscore.simpleandroidchat.AbstractActivity.java
com.anderscore.simpleandroidchat.ChatActivity.java
com.anderscore.simpleandroidchat.ChatListAdapter.java
com.anderscore.simpleandroidchat.ChatMsg.java
com.anderscore.simpleandroidchat.ConnectionAdapterEventbus.java
com.anderscore.simpleandroidchat.ConnectionAdapter.java
com.anderscore.simpleandroidchat.Constants.java
com.anderscore.simpleandroidchat.ContactListActivity.java
com.anderscore.simpleandroidchat.ContactListAdapter.java
com.anderscore.simpleandroidchat.Contact.java
com.anderscore.simpleandroidchat.DBConnection.java
com.anderscore.simpleandroidchat.DBModel.java
com.anderscore.simpleandroidchat.MessengerService.java
com.anderscore.simpleandroidchat.NotificationBuilder.java