API documentation
public class Indigo
public class Indigo
A class which simplifies access to the FutureGateway API
public static void init(String url)
public static void init(String url)
A method must be called in the application class of your app
Parameters:
url
— domain or IP address of the FutureGateway instance
public static void init(String url, String username)
public static void init(String url, String username)
A method must be called in the application class of your app - only for debug purposes
Parameters:
url
— domain or IP address of the FutureGateway instanceusername
— provided username to init the library. It should be gathered from the API
public static void getTasks(String status, TasksCallback callback)
public static void getTasks(String status, TasksCallback callback)
Gets all status assigned to given user and filtered by status
Parameters:
status
— results will be filtered based on provided statuscallback
— a callback to notify about the result of the operation
public static void getTasks(TasksCallback callback)
public static void getTasks(TasksCallback callback)
Gets all tasks assigned to authenticated user
Parameters:
callback
— a callback to notify about the result of the operation
public static void getTasks(String application, String status, TasksCallback callback)
public static void getTasks(String application, String status, TasksCallback callback)
Gets all tasks related with given user and application filtered by status
Parameters:
application
— results will be filtered basing on the application namestatus
— results will be filtered based on the provided statuscallback
— a callback to notify about the result of the operation
public static void getTask(int taskId, TaskDetailsCallback callback)
public static void getTask(int taskId, TaskDetailsCallback callback)
Gets details about task
Parameters:
taskId
— id of the task which should be obtainedcallback
— a callback to notify about the result of the operation
public static void createTask(Task newTask, TaskCreationCallback callback)
public static void createTask(Task newTask, TaskCreationCallback callback)
Executing the task
Parameters:
newTask
— a task to executecallback
— a callback to notify about the result of the operation
public static void getApplications(ApplicationsCallback callback)
public static void getApplications(ApplicationsCallback callback)
Quering all applications
Parameters:
callback
— a callback to notify about the result of the operation
public static void getApplications(String appName, ApplicationsCallback callback)
public static void getApplications(String appName, ApplicationsCallback callback)
Quering all applications by application's name
Parameters:
appName
— an application's name on the FG instancecallback
— a callback to notify about the result of the operation
public static void getApplications(int appId, ApplicationsCallback callback)
public static void getApplications(int appId, ApplicationsCallback callback)
Quering all applications by application's id
Parameters:
appId
— an application's id on the FG instancecallback
— a callback to notify about the result of the operation
Last updated