package com.zg.framework.websocket.config;

import javax.websocket.Session;

public class DeviceSession {
    private Session session;
    private long lastActiveTime;

    public DeviceSession(Session session) {
        this.session = session;
        this.lastActiveTime = System.currentTimeMillis();
    }

    public Session getSession() {
        return session;
    }

    public long getLastActiveTime() {
        return lastActiveTime;
    }

    public void refreshTime() {
        this.lastActiveTime = System.currentTimeMillis();
    }
}
