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 })
|
||||
}
|
||||
|
||||
public memberCreate({ id, secret, name, isAdmin }: { id: string; secret: string; name: string; isAdmin: boolean }) {
|
||||
const memberDataPayload = { id, secret, name, isAdmin }
|
||||
public memberCreate(memberDataPayload: {
|
||||
id: string
|
||||
secret: string
|
||||
name: string
|
||||
isAdmin: boolean
|
||||
canLogin: boolean
|
||||
canConnect: boolean
|
||||
canWatch: boolean
|
||||
canHost: boolean
|
||||
canAccessClipboard: boolean
|
||||
}) {
|
||||
this.api.admin.membersCreate({ memberDataPayload })
|
||||
}
|
||||
|
||||
|
@ -53,12 +53,22 @@ export interface MemberID {
|
||||
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 {
|
||||
event: string | undefined
|
||||
id: string
|
||||
name: string
|
||||
is_admin: boolean
|
||||
profile: MemberProfile
|
||||
is_connected: boolean
|
||||
is_receiving: boolean
|
||||
}
|
||||
|
||||
/////////////////////////////
|
||||
|
@ -66,13 +66,19 @@ export interface ScreenSize {
|
||||
/////////////////////////////
|
||||
// Member
|
||||
/////////////////////////////
|
||||
export interface Member {
|
||||
id: string
|
||||
export interface MemberProfile {
|
||||
name: string
|
||||
is_admin: boolean
|
||||
is_watching: boolean
|
||||
is_controlling: boolean
|
||||
can_login: boolean
|
||||
can_connect: boolean
|
||||
can_watch: boolean
|
||||
can_control: boolean
|
||||
clipboard_access: boolean
|
||||
can_host: 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