示例#1
0
 /**
  * Get the state from the API.<br>
  * This will send {@link ResponseCollection} or {@link NetworkErrorEvent} on completion.<br>
  * This request is authenticated.
  *
  * @param context Context
  */
 public static void info(Context context) {
   getInstance(context).addRequest(context, Action.REFRESH, Arguments.empty());
 }
示例#2
0
 /**
  * Send an action to the API.<br>
  * This will send {@link ResponseCollection} or {@link NetworkErrorEvent} on completion.<br>
  * This request is authenticated.
  *
  * @param context Context
  * @param action Action to send
  */
 public static void action(Context context, ActionInterface action) {
   action(context, action, Arguments.empty());
 }