mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
extract member state to custom struct.
This commit is contained in:
parent
11a843af0f
commit
7a8a4f11dc
@ -10,9 +10,8 @@ export const MEMBER_CREATED = 'member/created'
|
|||||||
export const MEMBER_DELETED = 'member/deleted'
|
export const MEMBER_DELETED = 'member/deleted'
|
||||||
export const MEMBER_CONNECTED = 'member/connected'
|
export const MEMBER_CONNECTED = 'member/connected'
|
||||||
export const MEMBER_DISCONNECTED = 'member/disconnected'
|
export const MEMBER_DISCONNECTED = 'member/disconnected'
|
||||||
export const MEMBER_RECEIVING_STARTED = 'member/receiving/started'
|
export const MEMBER_PROFILE = 'member/profile'
|
||||||
export const MEMBER_RECEIVING_STOPPED = 'member/receiving/stopped'
|
export const MEMBER_STATE = 'member/state'
|
||||||
export const MEMBER_PROFILE_UPDATED = 'member/profile/updated'
|
|
||||||
|
|
||||||
export const CONTROL_HOST = 'control/host'
|
export const CONTROL_HOST = 'control/host'
|
||||||
export const CONTROL_RELEASE = 'control/release'
|
export const CONTROL_RELEASE = 'control/release'
|
||||||
|
@ -54,6 +54,7 @@ export interface MemberID {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface MemberProfile {
|
export interface MemberProfile {
|
||||||
|
event: string | undefined
|
||||||
id: string
|
id: string
|
||||||
name: string
|
name: string
|
||||||
is_admin: boolean
|
is_admin: boolean
|
||||||
@ -64,6 +65,13 @@ export interface MemberProfile {
|
|||||||
can_access_clipboard: boolean
|
can_access_clipboard: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface MemberState {
|
||||||
|
event: string | undefined
|
||||||
|
id: string
|
||||||
|
is_connected: boolean
|
||||||
|
is_receiving: boolean
|
||||||
|
}
|
||||||
|
|
||||||
export interface MemberData {
|
export interface MemberData {
|
||||||
event: string | undefined
|
event: string | undefined
|
||||||
id: string
|
id: string
|
||||||
|
@ -76,9 +76,13 @@ export interface MemberProfile {
|
|||||||
can_access_clipboard: boolean
|
can_access_clipboard: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Member {
|
export interface MemberState {
|
||||||
id: string
|
|
||||||
profile: MemberProfile
|
|
||||||
is_connected: boolean
|
is_connected: boolean
|
||||||
is_receiving: boolean
|
is_receiving: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Member {
|
||||||
|
id: string
|
||||||
|
profile: MemberProfile
|
||||||
|
state: MemberState
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user