示例#1
0
        private Response MakeErrorResponse(ErrorCode errorCode, dynamic data)
        {
            var reponse = new Response
            {
                Error = XChainError.GetErrorByCode(errorCode),
                Data  = data,
            };

            return(reponse);
        }
示例#2
0
        private Response MakeResponse(string txid, dynamic data)
        {
            var reponse = new Response
            {
                Error = XChainError.GetErrorByCode(ErrorCode.Success),
                Txid  = txid,
                Data  = data,
            };

            return(reponse);
        }