From a58d2323e03d1818bb251e5ed441b796f5324c18 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Mon, 8 Jul 2024 22:23:04 -0400 Subject: [PATCH] Setup functions --- client.go | 134 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 133 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index 6931d06..2ec1272 100644 --- a/client.go +++ b/client.go @@ -48,5 +48,137 @@ func NewClient(uri string, token string) *Client { 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 }