Package com.github.theholywaffle.teamspeak3.commands.response

Examples of com.github.theholywaffle.teamspeak3.commands.response.DefaultArrayResponse


  public CClientDBFind(String pattern, boolean uid) {
    super("clientdbfind");
    add(new KeyValueParam("pattern", pattern));
    if (uid) {
      add(new OptionParam("uid"));
    }
  }
View Full Code Here


public class CServerGroupPermList extends Command {

  public CServerGroupPermList(int id) {
    super("servergrouppermlist");
    add(new KeyValueParam("sgid", id));
    add(new OptionParam("permsid"));
  }
View Full Code Here

public class CClientPermList extends Command{

  public CClientPermList(int clientDBId) {
    super("clientpermlist");
    add(new KeyValueParam("cldbid",clientDBId+""));
    add(new OptionParam("permsid"));
  }
View Full Code Here

public class CClientList extends Command{

  public CClientList() {
    super("clientlist");
    add(new OptionParam("uid"));
    add(new OptionParam("away"));
    add(new OptionParam("voice"));
    add(new OptionParam("times"));
    add(new OptionParam("groups"));
    add(new OptionParam("info"));
    add(new OptionParam("icon"));
    add(new OptionParam("country"));
  }
View Full Code Here

  public CChannelClientPermList(int channelId, int clientDBId) {
    super("channelclientpermlist");
    add(new KeyValueParam("cid",channelId));
    add(new KeyValueParam("cldbid",clientDBId));
    add(new OptionParam("permsid"));
  }
View Full Code Here

public class CServerSnapshotDeploy extends Command {

  public CServerSnapshotDeploy(String snapshot) {
    super("serversnapshotdeploy");
    add(new RawParam(snapshot));
  }
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

  }

  public void feed(String str) {
    raw = str;
    if (response == null) {
      response = new DefaultArrayResponse(str);
    }
  }
View Full Code Here

    }
  }

  public void feedError(String err) {
    if(error == null){
      error = new QueryError(new DefaultArrayResponse(err).getArray().get(0));
    }
  }
View Full Code Here

    return new Wrapper(new HashMap<String, String>());
  }

  public List<HashMap<String, String>> getResponse() {
    if (response == null) {
      return new DefaultArrayResponse("").getArray();
    }
    return response.getArray();
  }
View Full Code Here

TOP

Related Classes of com.github.theholywaffle.teamspeak3.commands.response.DefaultArrayResponse

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.