Package com.github.theholywaffle.teamspeak3.commands.parameter

Examples of com.github.theholywaffle.teamspeak3.commands.parameter.KeyValueParam


public class CServerGroupAutoDelPerm extends Command {

  public CServerGroupAutoDelPerm(ServerGroupType t, String permName) {
    super("servergroupautodelperm");
    add(new KeyValueParam("sgtype", t.getIndex()));
    add(new KeyValueParam("permsid", permName));
  }
View Full Code Here


    this(name, null);
  }

  public CChannelGroupAdd(String name, PermissionGroupDatabaseType t) {
    super("channelgroupadd");
    add(new KeyValueParam("name", name));
    if (t != null) {
      add(new KeyValueParam("type", t.getIndex()));
    }
  }
View Full Code Here

public class CClientDBEdit extends Command {

  public CClientDBEdit(int clientDBId, HashMap<ClientProperty, String> options) {
    super("clientdbedit");
    add(new KeyValueParam("cldbid",clientDBId+""));
    if (options != null) {
      for (ClientProperty p : options.keySet()) {
        if (p.isChangeable()) {
          add(new KeyValueParam(p.getName(), options.get(p)));
        }
      }
    }
  }
View Full Code Here

public class CChannelEdit extends Command {

  public CChannelEdit(int channelId, HashMap<ChannelProperty, String> options) {
    super("channeledit");
    add(new KeyValueParam("cid",channelId));
    if (options != null) {
      for (ChannelProperty p : options.keySet()) {
        if (p.isChangeable()) {
          add(new KeyValueParam(p.getName(), options.get(p)));
        }
      }
    }
  }
View Full Code Here

public class CServerGroupClientList extends Command {

  public CServerGroupClientList(int groupId) {
    super("servergroupclientlist");
    add(new KeyValueParam("sgid",groupId+""));
    add(new OptionParam("names"));
  }
View Full Code Here

public class CChannelCreate extends Command {

  public CChannelCreate(String name, HashMap<ChannelProperty, String> options) {
    super("channelcreate");
    add(new KeyValueParam("channel_name", name));
    if (options != null) {
      for (ChannelProperty p : options.keySet()) {
        if (p.isChangeable()) {
          add(new KeyValueParam(p.getName(), options.get(p)));
        }
      }
    }
  }
View Full Code Here

    this(t, -1);
  }

  public CServerNotifyRegister(TS3EventType t, int channelId) {
    super("servernotifyregister");
    add(new KeyValueParam("event", t.toString()));
    if (channelId >= 0) {
      add(new KeyValueParam("id", channelId));
    }

  }
View Full Code Here

public class CServerGroupCopy extends Command {

  public CServerGroupCopy(int sourceId, int targetId, String targetName,
      PermissionGroupDatabaseType t) {
    super("servergroupcopy");
    add(new KeyValueParam("ssgid", sourceId));
    add(new KeyValueParam("tsgid", targetId));
    add(new KeyValueParam("name", targetName));
    add(new KeyValueParam("type", t.getIndex()));
  }
View Full Code Here

public class CServerStop extends Command {

  public CServerStop(int id) {
    super("serverstop");
    add(new KeyValueParam("sid", id));
  }
View Full Code Here

  public void fireEvent(String notifyName, String notifyBody) {
    TS3EventEmitter emitter = map.get(notifyName);
    if (emitter != null) {
      for (TS3Listener l : listeners) {
        emitter.fire(l, new DefaultArrayResponse(notifyBody).getArray()
            .get(0));
      }
    } else {
      throw new TS3UnknownEventException(notifyName + " " + notifyBody);
    }
View Full Code Here

TOP

Related Classes of com.github.theholywaffle.teamspeak3.commands.parameter.KeyValueParam

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.