public void Post(IEnumerable <Event> events)
 {
     ClientUtils.WaitTask(PostAsync(events));
 }
Exemplo n.º 2
0
 public void Update(SmartObject smartObject, string deviceId)
 {
     ClientUtils.WaitTask(UpdateAsync(smartObject, deviceId));
 }
Exemplo n.º 3
0
 public IEnumerable <Result> CreateUpdate(IEnumerable <SmartObject> objects)
 {
     return(ClientUtils.WaitTask <IEnumerable <Result> >(CreateUpdateAsync(objects)));
 }
Exemplo n.º 4
0
 public void Create(SmartObject smartObject)
 {
     ClientUtils.WaitTask(CreateAsync(smartObject));
 }
Exemplo n.º 5
0
 public void Delete(string deviceId)
 {
     ClientUtils.WaitTask(DeleteAsync(deviceId));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Implements <see cref="Mnubo.SmartObjects.Client.IOwnerClient.UpdatePassword" />
 /// </summary>
 public void UpdatePassword(string username, string password)
 {
     ClientUtils.WaitTask(UpdatePasswordAsync(username, password));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Implements <see cref="Mnubo.SmartObjects.Client.IOwnerClient.CreateUpdate" />
 /// </summary>
 public IEnumerable <Result> CreateUpdate(IEnumerable <Owner> owners)
 {
     return(ClientUtils.WaitTask <IEnumerable <Result> >(CreateUpdateAsync(owners)));
 }
Exemplo n.º 8
0
 /// <summary>
 /// Implements <see cref="Mnubo.SmartObjects.Client.IOwnerClient.Delete" />
 /// </summary>
 public void Delete(string username)
 {
     ClientUtils.WaitTask(DeleteAsync(username));
 }
Exemplo n.º 9
0
 /// <summary>
 /// Implements <see cref="Mnubo.SmartObjects.Client.IOwnerClient.Update" />
 /// </summary>
 public void Update(Owner owner, string username)
 {
     ClientUtils.WaitTask(UpdateAsync(owner, username));
 }
Exemplo n.º 10
0
 /// <summary>
 /// Implements <see cref="Mnubo.SmartObjects.Client.IOwnerClient.Create" />
 /// </summary>
 public void Create(Owner owner)
 {
     ClientUtils.WaitTask(CreateAsync(owner));
 }
Exemplo n.º 11
0
 /// <summary>
 /// Implements <see cref="Mnubo.SmartObjects.Client.IOwnerClient.BatchUnclaim" />
 /// </summary>
 public IEnumerable <Result> BatchUnclaim(IEnumerable <ClaimOrUnclaim> unclaims)
 {
     return(ClientUtils.WaitTask(BatchUnclaimAsync(unclaims)));
 }
Exemplo n.º 12
0
 /// <summary>
 /// Implements <see cref="Mnubo.SmartObjects.Client.IOwnerClient.Unclaim" />
 /// </summary>
 public void Unclaim(string username, string deviceId, Dictionary <string, object> body)
 {
     ClientUtils.WaitTask(UnclaimAsync(username, deviceId, body));
 }
Exemplo n.º 13
0
 /// <summary>
 /// Implements <see cref="Mnubo.SmartObjects.Client.IOwnerClient.OwnersExist" />
 /// </summary>
 public IDictionary <string, bool> OwnersExist(IList <string> usernames)
 {
     return(ClientUtils.WaitTask <IDictionary <string, bool> >(OwnersExistAsync(usernames)));
 }
Exemplo n.º 14
0
 /// <summary>
 /// Implements <see cref="Mnubo.SmartObjects.Client.IOwnerClient.OwnerExists" />
 /// </summary>
 public bool OwnerExists(string username)
 {
     return(ClientUtils.WaitTask <bool>(OwnerExistsAsync(username)));
 }