Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
package partydata
import (
"log"
)
func (c *PartyData) GetPartyData() PartyDataResponse {
req := PartyDataRequest{Type: "baseDlRequest", UUID: "UUID"}
c.Websocket.WriteJSON(req)
var res PartyDataResponse
for {
err := c.Websocket.ReadJSON(&res)
if err != nil {
log.Fatal("PartyDataRequest - Error getting party data:", err)
}
if res.Type == "partyBaseData" {
break
}
}
c.Websocket.Close()
return res
}