public Task Get <AsanaT>(AsanaTask arg1, String arg2, AsanaResponseEventHandler callback) where AsanaT : AsanaObject { AsanaRequest request = default(AsanaRequest); if (typeof(AsanaT) == typeof(AsanaEvent)) { request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetEventsInTask), arg1, arg2); return(request.Go((o, h) => PackAndSendResponse <AsanaEvent>(o, callback), ErrorCallback)); } throw new TypeAccessException("Unknown type for this request: " + typeof(AsanaT).Name); }
public Task Get <AsanaT>(AsanaTask arg1, AsanaCollectionResponseEventHandler callback) where AsanaT : AsanaObject { AsanaRequest request = default(AsanaRequest); if (typeof(AsanaT) == typeof(AsanaStory)) { request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetStoriesInTask), arg1); return(request.Go((o, h) => PackAndSendResponseCollection <AsanaStory>(o, callback), ErrorCallback)); } if (typeof(AsanaT) == typeof(AsanaProject)) { request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetProjectsOnATask), arg1); return(request.Go((o, h) => PackAndSendResponseCollection <AsanaProject>(o, callback), ErrorCallback)); } throw new TypeAccessException("Unknown type for this request: " + typeof(AsanaT).Name); }
public Task GetStoriesInTask(AsanaTask arg1, AsanaCollectionResponseEventHandler callback) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetStoriesInTask), arg1); return request.Go((o, h) => PackAndSendResponseCollection<AsanaStory>(o, callback), ErrorCallback); }
public void GetTasksByTag(AsanaTask arg1, AsanaCollectionResponseEventHandler callback) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTasksByTag), arg1); request.Go((o, h) => PackAndSendResponseCollection <AsanaTask>(o, callback), ErrorCallback); }
// public AsanaStory(string text, AsanaTask task) { Text = text; Target = task; }
// public AsanaStory(AsanaTask task) : this("", task) { }
public Task GetEventsInTask(AsanaTask asanaTask, String string1, AsanaResponseEventHandler callback) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetEventsInTask), asanaTask, string1); return(request.Go((o, h) => PackAndSendResponse <AsanaEvent>(o, callback), ErrorCallback)); }
public Task <AsanaEvent> GetEventsInTaskAsync(AsanaTask asanaTask, String string1) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetEventsInTask), asanaTask, string1); return(request.GoAsync <AsanaEvent>(true)); }
public Task GetProjectsOnATask(AsanaTask asanaTask, AsanaCollectionResponseEventHandler callback) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetProjectsOnATask), asanaTask); return(request.Go((o, h) => PackAndSendResponseCollection <AsanaProject>(o, callback), ErrorCallback)); }
public Task <IAsanaObjectCollection <AsanaProject> > GetProjectsOnATaskAsync(AsanaTask asanaTask) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetProjectsOnATask), asanaTask); return(request.GoCollectionAsync <AsanaProject>()); }
public Task <IAsanaObjectCollection <AsanaStory> > GetStoriesInTaskAsync(AsanaTask asanaTask) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetStoriesInTask), asanaTask); return(request.GoCollectionAsync <AsanaStory>()); }
public void GetTasksByTag(AsanaTask arg1, AsanaCollectionResponseEventHandler callback) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTasksByTag), arg1); request.Go((o, h) => PackAndSendResponseCollection<AsanaTask>(o, callback), ErrorCallback); }
public Task GetStoriesInTask(AsanaTask arg1, AsanaCollectionResponseEventHandler callback) { var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetStoriesInTask), arg1); return(request.Go((o, h) => PackAndSendResponseCollection <AsanaStory>(o, callback), ErrorCallback)); }