mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
update member data interface.
This commit is contained in:
parent
38703f89b6
commit
3df2c028cd
@ -224,8 +224,17 @@
|
|||||||
this.websocket.send('screen/set', { width, height, rate })
|
this.websocket.send('screen/set', { width, height, rate })
|
||||||
}
|
}
|
||||||
|
|
||||||
public memberCreate({ id, secret, name, isAdmin }: { id: string; secret: string; name: string; isAdmin: boolean }) {
|
public memberCreate(memberDataPayload: {
|
||||||
const memberDataPayload = { id, secret, name, isAdmin }
|
id: string
|
||||||
|
secret: string
|
||||||
|
name: string
|
||||||
|
isAdmin: boolean
|
||||||
|
canLogin: boolean
|
||||||
|
canConnect: boolean
|
||||||
|
canWatch: boolean
|
||||||
|
canHost: boolean
|
||||||
|
canAccessClipboard: boolean
|
||||||
|
}) {
|
||||||
this.api.admin.membersCreate({ memberDataPayload })
|
this.api.admin.membersCreate({ memberDataPayload })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,12 +53,22 @@ export interface MemberID {
|
|||||||
id: string
|
id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: New.
|
export interface MemberProfile {
|
||||||
|
name: string
|
||||||
|
is_admin: boolean
|
||||||
|
can_login: boolean
|
||||||
|
can_connect: boolean
|
||||||
|
can_watch: boolean
|
||||||
|
can_host: boolean
|
||||||
|
can_access_clipboard: boolean
|
||||||
|
}
|
||||||
|
|
||||||
export interface MemberData {
|
export interface MemberData {
|
||||||
event: string | undefined
|
event: string | undefined
|
||||||
id: string
|
id: string
|
||||||
name: string
|
profile: MemberProfile
|
||||||
is_admin: boolean
|
is_connected: boolean
|
||||||
|
is_receiving: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
@ -66,13 +66,19 @@ export interface ScreenSize {
|
|||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
// Member
|
// Member
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
export interface Member {
|
export interface MemberProfile {
|
||||||
id: string
|
|
||||||
name: string
|
name: string
|
||||||
is_admin: boolean
|
is_admin: boolean
|
||||||
is_watching: boolean
|
can_login: boolean
|
||||||
is_controlling: boolean
|
can_connect: boolean
|
||||||
can_watch: boolean
|
can_watch: boolean
|
||||||
can_control: boolean
|
can_host: boolean
|
||||||
clipboard_access: boolean
|
can_access_clipboard: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Member {
|
||||||
|
id: string
|
||||||
|
profile: MemberProfile
|
||||||
|
is_connected: boolean
|
||||||
|
is_receiving: boolean
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user