Client.java 1002 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. *
  3. */
  4. package org.jim.common.packets;
  5. /**
  6. * 版本: [1.0]
  7. * 功能说明:
  8. * 作者: WChao 创建时间: 2017年7月26日 下午3:11:55
  9. */
  10. public class Client extends Message{
  11. private static final long serialVersionUID = 6196600593975727155L;
  12. private String ip; //客户端ip
  13. private int port; //客户端port
  14. private User user; //如果没登录过,则为null
  15. private String region; //地区
  16. private String useragent; //浏览器信息
  17. public String getIp() {
  18. return ip;
  19. }
  20. public void setIp(String ip) {
  21. this.ip = ip;
  22. }
  23. public int getPort() {
  24. return port;
  25. }
  26. public void setPort(int port) {
  27. this.port = port;
  28. }
  29. public User getUser() {
  30. return user;
  31. }
  32. public void setUser(User user) {
  33. this.user = user;
  34. }
  35. public String getRegion() {
  36. return region;
  37. }
  38. public void setRegion(String region) {
  39. this.region = region;
  40. }
  41. public String getUseragent() {
  42. return useragent;
  43. }
  44. public void setUseragent(String useragent) {
  45. this.useragent = useragent;
  46. }
  47. }