Android Open Source - android-qq User






From Project

Back to project page android-qq.

License

The source code is released under:

Apache License

If you think the Android project android-qq 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.myandroid.util;
//from  w w  w . j  a v  a  2 s . co m
public class User implements java.io.Serializable {

  private String name="";

  private String ip;
  private long OnlineTime; 
  private int unReadMsgCount = 0;
  private int headIconPos=0;

  public int getHeadIconPos() {
    return headIconPos;
  }

  public void setHeadIconPos(int headIconPos) {
    this.headIconPos = headIconPos;
  }


  public long getOnlineTime() {
    return OnlineTime;
  }

  public void setOnlineTime(long onlineTime) {
    OnlineTime = onlineTime;
  }

  public int getUnReadMsgCount() {
    return unReadMsgCount;
  }

  public void setUnReadMsgCount(int unReadMsgCount) {
    this.unReadMsgCount = unReadMsgCount;
  }

  public User(String name, String ip) {
    super();
    this.name = name;

    this.ip = ip;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getIp() {
    return ip;
  }

  public void setIp(String ip) {
    this.ip = ip;
  }

  public User(String name, String ip, int unReadMsgCount,long time) {
    super();
    this.name = name;
    this.ip = ip;
    this.unReadMsgCount = unReadMsgCount;
    this.OnlineTime=time;
  }
  public User getCopy()
  {
    User u=new User(this.name,this.ip,this.unReadMsgCount,this.OnlineTime);
  
    u.setHeadIconPos(this.headIconPos);
    return u;
  }

}




Java Source Code List

com.myandroid.activity.ChatActivity.java
com.myandroid.activity.FileAcitivity.java
com.myandroid.activity.MainActivity.java
com.myandroid.activity.MediaDialog.java
com.myandroid.activity.SettingDialog.java
com.myandroid.util.Audio.java
com.myandroid.util.FileTcpClient.java
com.myandroid.util.FileTcpServer.java
com.myandroid.util.MediaTcpClient.java
com.myandroid.util.MediaTcpServer.java
com.myandroid.util.Media.java
com.myandroid.util.Msg.java
com.myandroid.util.Tools.java
com.myandroid.util.User.java