Esempio n. 1
0
        public static Transaction ReadFromJObject(JObject o)
        {
            if (o == null)
                return null;

            var r = new Transaction()
            {
                Type = o.Value<int>("type"),
                Amount = o.Value<decimal>("amount"),
                Currency = BtceCurrencyHelper.FromString(o.Value<string>("currency")),
                Timestamp = o.Value<UInt32>("timestamp"),
                Status = o.Value<int>("status"),
                Description = o.Value<string>("desc")
            };

            return r;
        }