Esempio n. 1
0
 public PersonGroup CreateGroup(PersonGroup item)
 {
     try
     {
         return(Client.CreateGroup(item));
     }
     finally
     {
         Store.Clear <PersonGroup>();
     }
 }
 public void DeleteGroup(PersonGroup group)
 {
     if (group != null)
     {
         try
         {
             Task.Run(() => Api.DeletePersonGroupAsync(group.Name.ToLowerInvariant())).GetAwaiter().GetResult();
         }
         catch (FaceAPIException ex)
         {
             throw new FaceApiException(ex.ErrorMessage);
         }
     }
 }
        public PersonGroup CreateGroup(PersonGroup item)
        {
            if (item != null)
            {
                try
                {
                    Task.Run(() => Api.CreatePersonGroupAsync(item.Name.ToLowerInvariant(), item.Name, item.UserData)).GetAwaiter().GetResult();
                }
                catch (FaceAPIException ex)
                {
                    throw new FaceApiException(ex.ErrorMessage);
                }
            }

            return(item);
        }
 public void DeleteGroup(PersonGroup group)
 {
 }
 public PersonGroup CreateGroup(PersonGroup group)
 {
     return(group);
 }
Esempio n. 6
0
 public void DeleteGroup(PersonGroup item)
 {
     Store.Clear <PersonGroup>();
     Client.DeleteGroup(item);
 }