You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This also adds a proper struct to hold the response data. Documentation
of the fields is a mix of the server query manual and experiments with
an actual server. I could not figure out the meaning or data type for
all fields, most notably `client_badges` and `client_meta_data` which I
even excluded from the struct definition.
Data for the tests is the incomplete data from the manual supplemented
by real query results. Fields like ip address and UUIDs have been
anonymized by replacing characters. I tried not to introduce characters
which were previously not used in the value.
// False if the client has their speakers disabled, for example
431
+
// because they are unplugged. Do not confuse this with OutputMuted.
432
+
OutputHardwarebool`ms:"client_output_hardware"`
433
+
// True if the client has their speakers muted
434
+
OutputMutedbool`ms:"client_output_muted"`
435
+
OutputOnlyMutedbool`ms:"client_outputonly_muted"`
436
+
TalkRequestbool`ms:"client_talk_request"`
437
+
438
+
// Indicates whether the client is able to talk or not.
439
+
//TODO: This is always 0, even if my talk power is high enough?
440
+
IsTalkerbool`ms:"client_is_talker"`
441
+
442
+
//TODO: I always got "overwolf=0". I assume it is a list of "key=value|key2=value2...". In that case, the type of this should be a map (or maybe an array, if it's only true/false).
443
+
//Badges string `ms:"client_badges"`
444
+
445
+
//TODO: I never managed to receive any value for this field
446
+
//MetaData interface{} `ms:"client_meta_data"`
447
+
}
448
+
449
+
// ClientInfo returns detailed information about a single online client.
0 commit comments