Setup functions
This commit is contained in:
parent
680a456e3a
commit
a58d2323e0
134
client.go
134
client.go
|
@ -48,5 +48,137 @@ func NewClient(uri string, token string) *Client {
|
||||||
|
|
||||||
defer ws.Close()
|
defer ws.Close()
|
||||||
|
|
||||||
return &Client{}
|
return &Client{
|
||||||
|
Uri: uri,
|
||||||
|
Token: token,
|
||||||
|
|
||||||
|
Channel: mpp.Channel{
|
||||||
|
Crown: mpp.Crown{},
|
||||||
|
},
|
||||||
|
|
||||||
|
Ppl: map[string]mpp.Participant{},
|
||||||
|
|
||||||
|
ConnectionAttempts: 0,
|
||||||
|
CanConnect: false,
|
||||||
|
|
||||||
|
NoteBuffer: []mpp.Note{},
|
||||||
|
NoteBufferTime: 0,
|
||||||
|
|
||||||
|
LoginInfo: mpp.LoginInfo{},
|
||||||
|
AccountInfo: mpp.AccountInfo{},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) IsSupported() bool {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) IsConnected() bool {
|
||||||
|
// TODO
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) IsConnecting() bool {
|
||||||
|
// TODO
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) Start() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) Stop() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) connect() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) bindEventListners() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) Send(raw string) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) SendArray(arr any) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) SetChannel(id string, set any) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) GetChannelSetting(key string) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) SetChannelSettings(settings mpp.ChannelSettings) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) GetOwnParticipant() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) SetParticipants(ppl []mpp.Participant) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) countParticipants() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) participantUpdate(update mpp.Participant) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) participantMoveMouse(update any) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) removeParticipant(id string) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) findParticipantById(id string) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) IsOwner() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) PreventsPlaying() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) receiveServerTime(time int, echo int) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) StartNote(note string, vel int) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) StopNote(note string) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) SendPing() {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) setLoginInfo(loginInfo mpp.LoginInfo) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) On(event string, listener func()) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *Client) Emit(event string, args ...any) {
|
||||||
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue