Пример #1
0
        public Result <ObservableCollection <TradeRecordInfo> > ListFilterTrans(FilterIM filer, int skip = 0, bool includeWatchOnly = true, int count = 5)
        {
            var result = new Result <ObservableCollection <TradeRecordInfo> >();

            var         p        = Math.Pow(10, 8);
            ApiResponse response = TransactionApi.ListFilterTrans(filer, count, skip, includeWatchOnly).Result;

            result.IsFail = response.HasError;
            if (result.IsFail)
            {
                return(result);
            }

            var payments = response.GetResult <List <Payment> >();

            result.Value = new ObservableCollection <TradeRecordInfo>();
            payments.ForEach(x =>
            {
                var item = new TradeRecordInfo(x);
                result.Value.Add(item);
            });

            return(result);
        }