示例#1
0
        private static WebCallResult <T> GetResult <T>(WebCallResult <CoinExApiResult <T> > result) where T : class
        {
            if (result.Error != null || result.Data == null)
            {
                return(result.AsError <T>(result.Error ?? new UnknownError("No data received")));
            }

            return(result.As(result.Data.Data));
        }