Package belotetime.application.data

Examples of belotetime.application.data.Update


  }

  @Override
  public void update(Object args) {
    if (args instanceof Update) {
      Update update = (Update) args;
      switch (update.getAction()) {
      case "games":
        if (update.getData() != null) {
          setGame((ArrayList<String>) update.getData());
          _controller.execute("players", new Object[] { "default" });
        }
        break;
      case "players":
        setPlayer((ArrayList<String>) update.getData());
        break;
      case "addGame":
        Object data[] = ((Object[]) update.getData());
        if ((Boolean) data[0]) {
          _action = "create";
          _game = (String) data[1];
          _adresse = (String) data[2];
          _controller.execute("roomDisconnect",
View Full Code Here


 
  @SuppressWarnings("unchecked")
  @Override
  public void update(Object args) {
    if(args instanceof Update){
      Update update = (Update) args;
      switch(update.getAction()){
        case "auth":
          _infos = (User) update.getData();
          auth();
          break;
      }
    }
  }
View Full Code Here

  }

  @Override
  public void update(Object args) {
    if (args instanceof Update) {
      Update up = ((Update) args);
      switch (up.getAction()) {
      case "permissions":
        ArrayList perms[] = (ArrayList[]) up.getData();
        setPermission(perms[0], perms[1], perms[2]);
        break;
      case "users":
        setUsers((ArrayList<User>) up.getData());
        break;
      }
    }
  }
View Full Code Here

TOP

Related Classes of belotetime.application.data.Update

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.