Exemplo n.º 1
0
 /// <summary>
 /// 面对面收款
 /// </summary>
 /// <param name="json"></param>
 /// <returns></returns>
 private Boolean Do_EventScanCashMoney(string json)
 {
     try
     {
         ScanCashMoneyEventArgs scanCashMoneyEventArgs = JsonConvert.DeserializeObject <ScanCashMoneyEventArgs>(json);
         EventScanCashMoney?.Invoke(this, scanCashMoneyEventArgs);
         return(true);
     }
     catch (Exception ex)
     {
         DebugMessage(ex.Message);
         DebugMessage(ex.StackTrace);
         return(false);
     }
 }
Exemplo n.º 2
0
        public string ToString(Newtonsoft.Json.Formatting formatting)
        {
            ScanCashMoneyEventArgs classData = this;

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