示例#1
0
        public bool Run(DirectoryBlockHeadRequest requestData)
        {
            var reply = Client.MakeRequest <DirectoryBlockHeadRequest>(requestData);

            JsonReply = reply.Content;

            if (reply.StatusCode == System.Net.HttpStatusCode.OK)
            {
                Result = JsonConvert.DeserializeObject <DirectoryBlockHeadResult>(reply.Content);
                return(true);
            }

            return(false);
        }
示例#2
0
        public bool Run()
        {
            Request = new DirectoryBlockHeadRequest();

            return(Run(Request));
        }