Beispiel #1
0
        public Task GetProjectsInTeam(AsanaTeam asanaTeam, AsanaCollectionResponseEventHandler callback)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetProjectsInTeam), asanaTeam);

            return(request.Go((o, h) => PackAndSendResponseCollection <AsanaProject>(o, callback), ErrorCallback));
        }
Beispiel #2
0
        public void GetStoryById(Int64 arg1, AsanaResponseEventHandler callback)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetStoryById), arg1);

            request.Go((o, h) => PackAndSendResponse <AsanaStory>(o, callback), ErrorCallback);
        }
Beispiel #3
0
        public Task GetWorkspaceById(Int64 arg1, AsanaResponseEventHandler callback)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetWorkspaceById), arg1);

            return(request.Go((o, h) => PackAndSendResponse <AsanaWorkspace>(o, callback), ErrorCallback));
        }
Beispiel #4
0
        public Task GetUserById(Int64 int64, AsanaResponseEventHandler callback)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetUserById), int64);

            return(request.Go((o, h) => PackAndSendResponse <AsanaUser>(o, callback), ErrorCallback));
        }
Beispiel #5
0
        public Task GetWorkspaces(AsanaCollectionResponseEventHandler callback)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetWorkspaces));

            return(request.Go((o, h) => PackAndSendResponseCollection <AsanaWorkspace>(o, callback), ErrorCallback));
        }
Beispiel #6
0
        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));
        }
Beispiel #7
0
        public Task <IAsanaObjectCollection <AsanaUser> > GetUsersAsync()
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetUsers));

            return(request.GoCollectionAsync <AsanaUser>());
        }
Beispiel #8
0
        public Task <IAsanaObjectCollection <AsanaTask> > GetTasksInWorkspaceAsync(AsanaWorkspace asanaWorkspace, AsanaUser asanaUser)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTasksInWorkspace), asanaWorkspace, asanaUser);

            return(request.GoCollectionAsync <AsanaTask>());
        }
Beispiel #9
0
        public Task GetStoriesInTask(AsanaTask asanaTask, AsanaCollectionResponseEventHandler callback)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetStoriesInTask), asanaTask);

            return(request.Go((o, h) => PackAndSendResponseCollection <AsanaStory>(o, callback), ErrorCallback));
        }
Beispiel #10
0
        public Task <AsanaWorkspace> GetWorkspaceByIdAsync(Int64 int64)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetWorkspaceById), int64);

            return(request.GoAsync <AsanaWorkspace>());
        }
Beispiel #11
0
        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));
        }
Beispiel #12
0
        public Task <IAsanaObjectCollection <AsanaWorkspace> > GetWorkspacesAsync()
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetWorkspaces));

            return(request.GoCollectionAsync <AsanaWorkspace>());
        }
Beispiel #13
0
 public static Task Save(this AsanaObject obj, Asana host, AsanaFunction function)
 {
     return(host.Save(obj, function));
 }
Beispiel #14
0
        public Task GetProjectsInWorkspace(AsanaWorkspace arg1, AsanaCollectionResponseEventHandler callback)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetProjectsInWorkspace), arg1);

            return(request.Go((o, h) => PackAndSendResponseCollection <AsanaProject>(o, callback), ErrorCallback));
        }
Beispiel #15
0
        public Task <IAsanaObjectCollection <AsanaProject> > GetProjectsInTeamAsync(AsanaTeam asanaTeam)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetProjectsInTeam), asanaTeam);

            return(request.GoCollectionAsync <AsanaProject>());
        }
Beispiel #16
0
        public Task <IAsanaObjectCollection <AsanaStory> > GetStoriesInTaskAsync(AsanaTask asanaTask)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetStoriesInTask), asanaTask);

            return(request.GoCollectionAsync <AsanaStory>());
        }
Beispiel #17
0
        public Task <AsanaEvent> GetEventsInAProjectAsync(AsanaProject asanaProject, String string1)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetEventsInAProject), asanaProject, string1);

            return(request.GoAsync <AsanaEvent>(true));
        }
Beispiel #18
0
        public Task <IAsanaObjectCollection <AsanaProject> > GetProjectsOnATaskAsync(AsanaTask asanaTask)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetProjectsOnATask), asanaTask);

            return(request.GoCollectionAsync <AsanaProject>());
        }
Beispiel #19
0
        public Task <AsanaEvent> GetEventsInTaskAsync(AsanaTask asanaTask, String string1)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetEventsInTask), asanaTask, string1);

            return(request.GoAsync <AsanaEvent>(true));
        }
Beispiel #20
0
        public Task <IAsanaObjectCollection <AsanaTask> > GetTasksByTagAsync(AsanaTag asanaTag)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTasksByTag), asanaTag);

            return(request.GoCollectionAsync <AsanaTask>());
        }
Beispiel #21
0
        public Task <AsanaUser> GetMeAsync()
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetMe));

            return(request.GoAsync <AsanaUser>());
        }
Beispiel #22
0
        public Task <AsanaProject> GetProjectByIdAsync(Int64 int64)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetProjectById), int64);

            return(request.GoAsync <AsanaProject>());
        }
Beispiel #23
0
        public Task <AsanaUser> GetUserByIdAsync(Int64 int64)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetUserById), int64);

            return(request.GoAsync <AsanaUser>());
        }
Beispiel #24
0
        public Task <IAsanaObjectCollection <AsanaTask> > GetTasksInAProjectAsync(AsanaProject asanaProject)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTasksInAProject), asanaProject);

            return(request.GoCollectionAsync <AsanaTask>());
        }
Beispiel #25
0
        public void GetTasksByTag(AsanaTask arg1, AsanaCollectionResponseEventHandler callback)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTasksByTag), arg1);

            request.Go((o, h) => PackAndSendResponseCollection <AsanaTask>(o, callback), ErrorCallback);
        }
Beispiel #26
0
        public Task <IAsanaObjectCollection <AsanaTeam> > GetTeamsInWorkspaceAsync(AsanaWorkspace asanaWorkspace)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTeamsInWorkspace), asanaWorkspace);

            return(request.GoCollectionAsync <AsanaTeam>());
        }
Beispiel #27
0
 public AsanaFunctionAssociation(AsanaFunction create, AsanaFunction update, AsanaFunction delete)
 {
     Create = create;
     Update = update;
     Delete = delete;
 }
Beispiel #28
0
 public AsanaFunctionAssociation(AsanaFunction create, AsanaFunction update)
 {
     Create = create;
     Update = update;
 }