示例#1
0
文件: Api.cs 项目: alifianif/Buru
        public T Get <T>(string action)
        {
            var request  = new BasecampRequest(this, action);
            var response = request.GetResponse <T>();

            return(response.Content);
        }
示例#2
0
文件: Api.cs 项目: alifianif/Buru
        public T GetResponseFromUrl <T>(string absoluteUrl)
        {
            var request  = new BasecampRequest(this, new Uri(absoluteUrl));
            var response = request.GetResponse <T>();

            return(response.Content);
        }
示例#3
0
文件: Api.cs 项目: alifianif/Buru
        //public CommentManager Comments { get; private set; }
        //public DocumentManager Documents { get; private set; }

        public BasecampRequest GetRequest()
        {
            var request = new BasecampRequest(this);

            return(request);
        }
示例#4
0
文件: Api.cs 项目: alifianif/Buru
        public BasecampRequest GetRequestForAction(string action)
        {
            var request = new BasecampRequest(this, action);

            return(request);
        }
示例#5
0
文件: Api.cs 项目: alifianif/Buru
        public BasecampRequest GetRequest(string absoluteUrl)
        {
            var request = new BasecampRequest(this, new Uri(absoluteUrl));

            return(request);
        }