using System; using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json; namespace ResfullApi.Models { [Serializable] public class chargeObj { [JsonProperty("username")] public string username { get; set; } [JsonProperty("password")] public string password { get; set; } [JsonProperty("serviceid")] public string serviceid { get; set; } [JsonProperty("msisdn")] public string msisdn { get; set; } [JsonProperty("chargetime")] public string chargetime { get; set; } [JsonProperty("paramss")] public string paramss { get; set; } [JsonProperty("mode")] public string mode { get; set; } [JsonProperty("amount")] public string amount { get; set; } [JsonProperty("prefix")] public string prefix { get; set; } [JsonProperty("cmd")] public string cmd { get; set; } [JsonProperty("transaction")] public string transaction { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } } }