1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| package com.doumee.jtt808.web.model.enums;
|
| import io.github.yezhihao.netmc.session.Session;
| import com.doumee.jtt808.web.model.entity.DeviceDO;
|
| /**
| * @author yezhihao
| * https://gitee.com/yezhihao/jt808-server
| */
| public enum SessionKey {
|
| Device;
|
| public static DeviceDO getDevice(Session session) {
| return (DeviceDO) session.getAttribute(Device);
| }
| }
|
|