public Task Get <AsanaT>(AsanaWorkspace arg1, AsanaUser arg2, AsanaCollectionResponseEventHandler callback) where AsanaT : AsanaObject { AsanaRequest request = default(AsanaRequest); if (typeof(AsanaT) == typeof(AsanaTask)) { request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTasksInWorkspace), arg1, arg2); return(request.Go((o, h) => PackAndSendResponseCollection <AsanaTask>(o, callback), ErrorCallback)); } throw new TypeAccessException("Unknown type for this request: " + typeof(AsanaT).Name); }
public Task GetTasksInWorkspace(AsanaWorkspace arg1, AsanaUser arg2, AsanaCollectionResponseEventHandler callback) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTasksInWorkspace), arg1, arg2); return request.Go((o, h) => PackAndSendResponseCollection<AsanaTask>(o, callback), ErrorCallback); }
public void GetTasksInWorkspace(AsanaWorkspace arg1, AsanaUser arg2, AsanaCollectionResponseEventHandler callback) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTasksInWorkspace), arg1, arg2); request.Go((o, h) => PackAndSendResponseCollection <AsanaTask>(o, callback), ErrorCallback); }
public Task <IAsanaObjectCollection <AsanaTask> > GetTasksInWorkspaceAsync(AsanaWorkspace asanaWorkspace, AsanaUser asanaUser) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTasksInWorkspace), asanaWorkspace, asanaUser); return(request.GoCollectionAsync <AsanaTask>()); }
public Task GetTasksInWorkspace(AsanaWorkspace asanaWorkspace, AsanaUser asanaUser, AsanaCollectionResponseEventHandler callback) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTasksInWorkspace), asanaWorkspace, asanaUser); return(request.Go((o, h) => PackAndSendResponseCollection <AsanaTask>(o, callback), ErrorCallback)); }