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

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

            return(reponse);
        }