content: package net.laoyeye.yyblog.model.vo;
  
  import java.util.Date;
  
  import com.fasterxml.jackson.annotation.JsonFormat;
  
  /**
   *
   *
   */
  public class UserOnlineVO {
  
      /**
       */
      private String id;
  
      private String userId;
  
      private String username;
  
      /**
       * 用户主机地址
       */
      private String host;
  
      /**
       * 用户登录时系统IP
       */
      private String systemHost;
  
      /**
       * 用户浏览器类型
       */
      private String userAgent;
  
      /**
       * 在线状态
       */
      private String status = "on_line";
  
      /**
       * session创建时间
       */
      @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
      private Date startTimestamp;
      /**
       * session最后访问时间
       */
      @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
      private Date lastAccessTime;
  
      /**
       * 超时时间
       */
      private Long timeout;
  
      /**
       * 备份的当前用户会话
       */
      private String onlineSession;
  
  
      public String getId() {
          return id;
      }
  
      public void setId(String id) {
          this.id = id;
      }
  
      public Date getStartTimestamp() {
          return startTimestamp;
      }
  
      public void setStartTimestamp(Date startTimestamp) {
          this.startTimestamp = startTimestamp;
      }
  
      public Date getLastAccessTime() {
          return lastAccessTime;
      }
  
      public void setLastAccessTime(Date lastAccessTime) {
          this.lastAccessTime = lastAccessTime;
      }
  
      public Long getTimeout() {
          return timeout;
      }
  
      public void setTimeout(Long timeout) {
          this.timeout = timeout;
      }
  
      public String getHost() {
          return host;
      }
  
      public void setHost(String host) {
          this.host = host;
      }
  
      public String getUserId() {
          return userId;
      }
  
      public void setUserId(String userId) {
          this.userId = userId;
      }
  
      public String getUsername() {
          return username;
      }
  
      public void setUsername(String username) {
          this.username = username;
      }
  
      public String getUserAgent() {
          return userAgent;
      }
  
      public void setUserAgent(String userAgent) {
          this.userAgent = userAgent;
      }
  
      public String getStatus() {
          return status;
      }
  
      public void setStatus(String status) {
          this.status = status;
      }
  
      public String getOnlineSession() {
          return onlineSession;
      }
  
      public void setOnlineSession(String onlineSession) {
          this.onlineSession = onlineSession;
      }
  
  
      public String getSystemHost() {
          return systemHost;
      }
  
      public void setSystemHost(String systemHost) {
          this.systemHost = systemHost;
      }
  
  
  
  }
  