Enum Class的使用
cool.scx.ext.auth.DeviceType
使用DeviceType的程序包
-
cool.scx.ext.auth中DeviceType的使用
声明为DeviceType的cool.scx.ext.auth中的字段返回DeviceType的cool.scx.ext.auth中的方法修饰符和类型方法说明static DeviceTypeAuthHelper.getDeviceTypeByHeader(io.vertx.ext.web.RoutingContext routingContext) 获取用户的设备static DeviceTypeof.static DeviceTypeReturns the enum constant of this class with the specified name.static DeviceType[]DeviceType.values()Returns an array containing the constants of this enum class, in the order they are declared.参数类型为DeviceType的cool.scx.ext.auth中的方法修饰符和类型方法说明LoggedInClientTable.getByLoginDevice(DeviceType deviceType) getByLoginDevice.booleanLoggedInClientTable.removeByLoginDevice(DeviceType deviceType) removeByLoginDevice.static StringAuthHelper.tryGetAuthToken(io.vertx.ext.web.RoutingContext ctx, DeviceType loginDevice) 尝试获取一个可以作为认证的 Token 具体获取方式由设备类型决定参数类型为DeviceType的cool.scx.ext.auth中的构造器限定符构造器说明LoggedInClient(String token, Long userID, DeviceType loginDevice) Constructor for LoggedInClient.