Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
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);
        }
Esempio n. 5
0
 //
 public AsanaStory(string text, AsanaTask task)
 {
     Text   = text;
     Target = task;
 }
Esempio n. 6
0
 //
 public AsanaStory(AsanaTask task) : this("", task)
 {
 }
Esempio n. 7
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));
        }
Esempio n. 8
0
        public Task <AsanaEvent> GetEventsInTaskAsync(AsanaTask asanaTask, String string1)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetEventsInTask), asanaTask, string1);

            return(request.GoAsync <AsanaEvent>(true));
        }
Esempio n. 9
0
        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));
        }
Esempio n. 10
0
        public Task <IAsanaObjectCollection <AsanaProject> > GetProjectsOnATaskAsync(AsanaTask asanaTask)
        {
            var request = GetBaseRequest(AsanaFunction.GetFunction(Function.GetProjectsOnATask), asanaTask);

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

            return(request.GoCollectionAsync <AsanaStory>());
        }
Esempio n. 12
0
 //
 public AsanaStory(string text, AsanaTask task)
 {
     Text    = text;
     Target  = task;
 }
Esempio n. 13
0
 //
 public AsanaStory(AsanaTask task)
     : this("", task)
 {
 }
Esempio n. 14
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);
 }
Esempio n. 15
0
        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));
        }