Exemplo n.º 1
0
        public JObject ToJson()
        {
            JObject json = new JObject();

            json["coin_identifier"] = CoinIdentifier.ToJson();
            json["coin_action"]     = CoinAction.AsString();
            return(json);
        }
Exemplo n.º 2
0
 public static CoinChange FromJson(JObject json)
 {
     return(new CoinChange(CoinIdentifier.FromJson(json["coin_identifier"]),
                           json["coin_action"].ToCoinAction()));
 }
Exemplo n.º 3
0
 public CoinChange(CoinIdentifier coinIdentifier, CoinAction coinAction)
 {
     CoinIdentifier = coinIdentifier;
     CoinAction     = coinAction;
 }