Esempio n. 1
0
 /// <summary>
 /// 收到转账事件
 /// </summary>
 /// <param name="json"></param>
 /// <returns></returns>
 private Boolean Do_EventCashMoney(string json)
 {
     try
     {
         CashMoneyEventArgs cashMoneyEventArgs = JsonConvert.DeserializeObject <CashMoneyEventArgs>(json);
         EventCashMoney?.Invoke(this, cashMoneyEventArgs);
         return(true);
     }
     catch (Exception ex)
     {
         DebugMessage(ex.Message);
         DebugMessage(ex.StackTrace);
         return(false);
     }
 }
Esempio n. 2
0
        public string ToString(Newtonsoft.Json.Formatting formatting)
        {
            CashMoneyEventArgs classData = this;

            return(JsonConvert.SerializeObject(classData, formatting));
        }