kmttAPI
0.3.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
kmttAPI
/
kmtt.models
/
Websocket
Websocket
data
class
Websocket
(
type
:
Websocket.Type
?
,
contentId
:
Long
?
,
count
:
Int
?
,
id
:
Long
?
,
state
:
Int
?
,
userHash
:
String
?
)
Content copied to clipboard
Types
Constructors
Properties
Parameters
Parameters
type
тип события
content
Id
id статьи
count
id
id контента
state
user
Hash
хэш пользователя, для сравнения с авторизованным
Constructors
Websocket
Link copied to clipboard
fun
Websocket
(
type
:
Websocket.Type
?
=
null
,
contentId
:
Long
?
=
null
,
count
:
Int
?
=
null
,
id
:
Long
?
=
null
,
state
:
Int
?
=
null
,
userHash
:
String
?
=
null
)
Content copied to clipboard
Types
Type
Link copied to clipboard
enum
Type
:
Enum
<
Websocket.Type
>
Content copied to clipboard
тип события
Properties
contentId
Link copied to clipboard
val
contentId
:
Long
?
=
null
Content copied to clipboard
count
Link copied to clipboard
val
count
:
Int
?
=
null
Content copied to clipboard
id
Link copied to clipboard
val
id
:
Long
?
=
null
Content copied to clipboard
state
Link copied to clipboard
val
state
:
Int
?
=
null
Content copied to clipboard
type
Link copied to clipboard
val
type
:
Websocket.Type
?
=
null
Content copied to clipboard
userHash
Link copied to clipboard
val
userHash
:
String
?
=
null
Content copied to clipboard