Android Open Source - SimpleAndroidChat Contact

From Project

Back to project page SimpleAndroidChat.


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){
  Contact(String name, boolean isOnline) {

  public String getUser() {
    return name;
  private void setName(String 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) { = id;

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

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

Java Source Code List