| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using Newtonsoft.Json.Linq;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- namespace NEducation.Code
- {
- public class Charging
- {
- // only for BuyCourse
- public string requestId { get; set; }
- // only for register sub
- public string responseCode { get; set; }
- public string requestID { get; set; }
- public string cmd { get; set; }
- public string money { get; set; }
- public string source { get; set; }
- public string otpType { get; set; }
- public Charging() { }
- public Charging(string json)
- {
- JObject jObject = JObject.Parse(json);
- if (jObject != null)
- {
- responseCode = (string)jObject["responseCode"];
- requestId = (string)jObject["requestId"];
- requestID = (string)jObject["requestID"];
- cmd = (string)jObject["cmd"];
- money = (string)jObject["money"];
- source = (string)jObject["source"];
- otpType = (string)jObject["otpType"];
- }
- }
- }
- }
|