Package com.github.theholywaffle.teamspeak3.api.wrapper

Examples of com.github.theholywaffle.teamspeak3.api.wrapper.Client


public class CPrivilegeKeyAdd extends Command{

  public CPrivilegeKeyAdd(int type, int groupId, int channelId, String description) {
    super("privilegekeyadd");
    add(new KeyValueParam("tokentype",type+""));
    add(new KeyValueParam("tokenid1",groupId+""));
    add(new KeyValueParam("tokenid2",channelId+""));
    if(description != null){
      add(new KeyValueParam("tokendescription", description));
    }
  }
View Full Code Here


public class CClientDelPerm extends Command{

  public CClientDelPerm(int clientDBId, String permName) {
    super("clientdelperm");
    add(new KeyValueParam("cldbid",clientDBId+""));
    add(new KeyValueParam("permsid",permName));
  }
View Full Code Here

public class CInstanceEdit extends Command{

  public CInstanceEdit(ServerInstanceProperty p, String value) {
    super("instanceedit");
    add(new KeyValueParam(p.getName(), value));
  }
View Full Code Here

public class CPrivilegeKeyDelete extends Command {

  public CPrivilegeKeyDelete(String token) {
    super("privilegekeydelete");
    add(new KeyValueParam("token",token));
  }
View Full Code Here

  }

  public CChannelGroupCopy(int sourceGroupId, int targetGroupId,
      String groupName, PermissionGroupDatabaseType t) {
    super("channelgroupcopy");
    add(new KeyValueParam("scgid", sourceGroupId));
    add(new KeyValueParam("tcgid", targetGroupId));
    add(new KeyValueParam("name", groupName));
    add(new KeyValueParam("type", t.getIndex()));
  }
View Full Code Here

public class CClientAddPerm extends Command{

  public CClientAddPerm(int clientDBId, String permName,int permValue, boolean permSkipped) {
    super("clientaddperm");
    add(new KeyValueParam("cldbid",clientDBId+""));
    add(new KeyValueParam("permsid",permName));
    add(new KeyValueParam("permvalue",permValue+""));
    add(new KeyValueParam("permskip",permSkipped?"1":"0"));
  }
View Full Code Here

public class CPermOverview extends Command {

  public CPermOverview(int channelId, int clientDBId) {
    super("permoverview");
    add(new KeyValueParam("cid",channelId+""));
    add(new KeyValueParam("cldbid",clientDBId+""));
    add(new KeyValueParam("permid",0+""));
  }
View Full Code Here

  public CClientKick( ReasonIdentifier reason, String reasonMessage,int... clientIds) {
    super("clientkick");
    ArrayParameter p = new ArrayParameter();
    for(int id : clientIds){
      p.add(new KeyValueParam("clid",id+""));
    }
    add(p);
    add(new KeyValueParam("reasonid",reason.getIndex()+""));
    if(reasonMessage != null){
      add(new KeyValueParam("reasonmsg",reasonMessage));
    }   
  }
View Full Code Here

public class CServerGroupAddPerm extends Command {

  public CServerGroupAddPerm(int groupId, String permName, int permValue,
      boolean isNegated, boolean isSkipped) {
    super("servergroupaddperm");
    add(new KeyValueParam("sgid", groupId));
    add(new KeyValueParam("permsid", permName));
    add(new KeyValueParam("permvalue", permValue));
    add(new KeyValueParam("permnegated", (isNegated ? "1" : "0")));
    add(new KeyValueParam("permskip", (isSkipped ? "1" : "0")));
  }
View Full Code Here

public class CClientSetServerQueryLogin extends Command {

  public CClientSetServerQueryLogin(String username) {
    super("clientsetserverquerylogin");
    add(new KeyValueParam("client_login_name",username));
  }
View Full Code Here

TOP

Related Classes of com.github.theholywaffle.teamspeak3.api.wrapper.Client

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.