public APICursor(TelerivetAPI api, string path, JObject parameters)
        {
            if (parameters == null)
            {
                parameters = new JObject();
            }

            if (parameters["count"] != null)
            {
                throw new ArgumentException("Cannot construct APICursor with 'count' parameter. Call the count() method instead.");
            }

            this.api        = api;
            this.path       = path;
            this.parameters = parameters;

            this.ctor = typeof(T).GetConstructor(new Type[] {
                typeof(TelerivetAPI),
                typeof(JObject),
                typeof(bool)
            });
        }
Exemplo n.º 2
0
 public DataTable(TelerivetAPI api, JObject data, bool isLoaded = true)
     : base(api, data, isLoaded)
 {
 }
Exemplo n.º 3
0
 public Service(TelerivetAPI api, JObject data, bool isLoaded = true)
     : base(api, data, isLoaded)
 {
 }
 public ContactServiceState(TelerivetAPI api, JObject data, bool isLoaded = true)
     : base(api, data, isLoaded)
 {
 }
Exemplo n.º 5
0
 public MobileMoneyReceipt(TelerivetAPI api, JObject data, bool isLoaded = true)
     : base(api, data, isLoaded)
 {
 }
Exemplo n.º 6
0
 public Entity(TelerivetAPI api, JObject data, bool isLoaded = true)
 {
     this.api = api;
     SetData(data);
     this.isLoaded = isLoaded;
 }
 public Broadcast(TelerivetAPI api, JObject data, bool isLoaded = true)
     : base(api, data, isLoaded)
 {
 }
 public ScheduledMessage(TelerivetAPI api, JObject data, bool isLoaded = true)
     : base(api, data, isLoaded)
 {
 }
 public Organization(TelerivetAPI api, JObject data, bool isLoaded = true)
     : base(api, data, isLoaded)
 {
 }