/// <summary> /// Retrieves a list of client groups from the connected Teamspeak server. /// </summary> /// <returns>A list of <see cref="GetChannelGroupListInfo"/> retrieved from the teamspeak server.</returns> public async Task <IReadOnlyList <GetChannelGroupListInfo> > GetChannelGroups() { var res = await Client.Send("channelgrouplist").ConfigureAwait(false); return(DataProxy.SerializeGeneric <GetChannelGroupListInfo>(res)); }
public async Task <IReadOnlyList <GetServerListInfo> > GetServers() { var res = await Client.Send("serverlist").ConfigureAwait(false); return(DataProxy.SerializeGeneric <GetServerListInfo>(res)); }
public async Task <IReadOnlyList <GetServerGroup> > GetServerGroups(int clientDatabaseId) { var res = await Client.Send("servergroupsbyclientid", new Parameter("cldbid", clientDatabaseId)).ConfigureAwait(false); return(DataProxy.SerializeGeneric <GetServerGroup>(res)); }
public async Task <IReadOnlyCollection <FoundChannel> > FindChannel() { var res = await Client.Send("channelfind").ConfigureAwait(false); return(DataProxy.SerializeGeneric <FoundChannel>(res)); }
public async Task <IReadOnlyList <GetServerGroupClientList> > GetServerGroupClientList(int serverGroupDatabaseId) { var res = await Client.Send("servergroupclientlist", new Parameter("sgid", serverGroupDatabaseId)).ConfigureAwait(false); return(DataProxy.SerializeGeneric <GetServerGroupClientList>(res)); }