Example #1
0
 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;
 }
Example #2
0
        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;
        }
Example #3
0
 /*
  * Construct from CTM.Response data
  */
 public Number(JObject src, CTM.AuthToken token)
 {
     this.token = token;
       this.update_from(src);
 }
Example #4
0
            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");
            }
Example #5
0
 public SearchResult(CTM.AuthToken token, string error)
 {
     this.token = token;
     this.error = error;
 }
Example #6
0
 /*
  * Construct from CTM.Response data
  */
 public Account(JObject src, CTM.AuthToken token)
 {
     this.token = token;
       this.update_from(src);
 }
Example #7
0
 public Account(CTM.AuthToken token)
 {
     this.token = token;
 }