public Account(string id, string name, string status, CTM.AuthToken auth_token) { this.id = id; this.token = auth_token; this.name = name; this.status = status; }
public Number(string id, string _number, CTM.AuthToken auth_token, string name = null) { this.id = id; this.number = _number; this.name = name; this.token = auth_token; }
/* * Construct from CTM.Response data */ public Number(JObject src, CTM.AuthToken token) { this.token = token; this.update_from(src); }
public SearchResult(JObject src, CTM.AuthToken token) { this.token = token; this.phone_number = src.Value<string>("phone_number"); this.friendly_name = src.Value<string>("friendly_name"); this.latitude = src.Value<float?>("latitude"); this.longitude = src.Value<float?>("longitude"); this.rate_center = src.Value<string>("rate_center"); this.lata = src.Value<int?>("lata"); this.region = src.Value<string>("region"); this.postal_code = src.Value<string>("postal_code"); this.iso_country = src.Value<string>("iso_country"); JToken capabilities = src.GetValue("capabilities"); this.voice = capabilities.Value<bool>("voice"); this.sms = capabilities.Value<bool>("SMS"); this.mms = capabilities.Value<bool>("MMS"); }
public SearchResult(CTM.AuthToken token, string error) { this.token = token; this.error = error; }
/* * Construct from CTM.Response data */ public Account(JObject src, CTM.AuthToken token) { this.token = token; this.update_from(src); }
public Account(CTM.AuthToken token) { this.token = token; }