コード例 #1
0
        public bool Run(string chainID)
        {
            Request = new ChainHeadRequest();
            Request.param.ChainID = chainID;

            return(Run(Request));
        }
コード例 #2
0
        public bool Run(ChainHeadRequest requestData)
        {
            var reply = Client.MakeRequest <ChainHeadRequest>(requestData);

            JsonReply = reply.Content;

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

            return(false);
        }