Android Open Source - SimpleAndroidChat Contact






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;
/*  w w  w . j av  a 2 s .co  m*/
import java.util.ArrayList;

public class Contact {
  private int id;
  private String name;
  private boolean isOnline;
  private ArrayList<ChatMsg> chatHistory;
  
  
  Contact(int id, String name, boolean isOnline, ArrayList<ChatMsg> chatHistory){
    setId(id);
    setName(name);
    setOnline(isOnline);
    setChatHistory(chatHistory);
  }
  
  
  Contact(String name, boolean isOnline) {
    setName(name);
    setOnline(isOnline);
  }
  

  public String getUser() {
    return name;
  }
  
  private void setName(String name) {
    this.name = name;
  }
  
  public boolean isOnline() {
    return isOnline;
  }
  
  private void setOnline(boolean isOnline) {
    this.isOnline = isOnline;
  }

  public int getId() {
    return id;
  }

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

  public ArrayList<ChatMsg> getChatHistory() {
    return chatHistory;
  }

  public void setChatHistory(ArrayList<ChatMsg> chatHistory) {
    this.chatHistory = chatHistory;
  }
}




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