mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
remove WS and add memberUpdate.
This commit is contained in:
parent
052eb3cade
commit
fb4f1d68cc
@ -196,23 +196,19 @@
|
||||
|
||||
public requestControl() {
|
||||
this.api.user.controlRequest()
|
||||
//this.websocket.send('control/request')
|
||||
}
|
||||
|
||||
public releaseControl() {
|
||||
this.api.user.controlRelease()
|
||||
//this.websocket.send('control/release')
|
||||
}
|
||||
|
||||
public takeControl() {
|
||||
this.api.admin.controlTake()
|
||||
//this.websocket.send('control/take')
|
||||
}
|
||||
|
||||
public giveControl(id: string) {
|
||||
const controlTargetPayload = { id }
|
||||
this.api.admin.controlGive({ controlTargetPayload })
|
||||
//this.websocket.send('control/give', { id })
|
||||
}
|
||||
|
||||
public resetControl() {
|
||||
@ -238,6 +234,22 @@
|
||||
this.api.admin.membersCreate({ memberDataPayload })
|
||||
}
|
||||
|
||||
public memberUpdate(
|
||||
memberId: string,
|
||||
memberDataPayload: {
|
||||
secret: string
|
||||
name: string
|
||||
isAdmin: boolean
|
||||
canLogin: boolean
|
||||
canConnect: boolean
|
||||
canWatch: boolean
|
||||
canHost: boolean
|
||||
canAccessClipboard: boolean
|
||||
},
|
||||
) {
|
||||
this.api.admin.membersUpdate({ memberId, memberDataPayload })
|
||||
}
|
||||
|
||||
public memberDelete(memberId: string) {
|
||||
this.api.admin.membersDelete({ memberId })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user