Open expiteRz opened 1 month ago
heres temporary structure for wiimmfi-room-watcher:
type WiiLinkRoom struct {
Id string `json:"id"`
Game string `json:"game"`
Created string `json:"created"`
Type string `json:"type"`
Suspend bool `json:"suspend"`
RoomHost string `json:"host"`
GameModeRegion string `json:"rk"`
Players map[string]Player `json:"players"`
}
type Player struct {
Count string `json:"count"`
Pid string `json:"pid"`
Name string `json:"name"`
Status int `json:"conn_map,string"`
ConnFail int `json:"conn_fail,string"`
Suspend int `json:"suspend,string"`
FriendCode string `json:"fc"`
VR int `json:"ev,string"`
BR int `json:"eb,string"`
Miis []MiiData `json:"mii"`
}
type MiiData struct {
Face string `json:"data"`
Name string `json:"name"`
}
room stats retrievable via https://{somethingdomain}/api/groups