示例#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));
        }
示例#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);
        }
示例#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));
        }
示例#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));
        }
示例#5
0
        public Task GetWorkspaces(AsanaCollectionResponseEventHandler callback)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetWorkspaces));

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

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

            return(request.GoCollectionAsync <AsanaTask>());
        }
示例#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));
        }
示例#10
0
        public Task <AsanaWorkspace> GetWorkspaceByIdAsync(Int64 int64)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetWorkspaceById), int64);

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

            return(request.GoCollectionAsync <AsanaWorkspace>());
        }
示例#13
0
 public static Task Save(this AsanaObject obj, Asana host, AsanaFunction function)
 {
     return(host.Save(obj, function));
 }
示例#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));
        }
示例#15
0
        public Task <IAsanaObjectCollection <AsanaProject> > GetProjectsInTeamAsync(AsanaTeam asanaTeam)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetProjectsInTeam), asanaTeam);

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

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

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

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

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

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

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

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

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

            return(request.GoCollectionAsync <AsanaTask>());
        }
示例#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);
        }
示例#26
0
        public Task <IAsanaObjectCollection <AsanaTeam> > GetTeamsInWorkspaceAsync(AsanaWorkspace asanaWorkspace)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetTeamsInWorkspace), asanaWorkspace);

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