Ejemplo n.º 1
0
 /// <summary>
 /// Vrati osobni kontakty daneho uzivatele
 /// </summary>
 /// <param name="nick"></param>
 /// <param name="password"></param>
 /// <returns></returns>
 public static List<ImUser> Contact_GetMyContacts(int id_usr, string password)
 {
     try
     {
         using (MessagingServiceClient api = new MessagingServiceClient())
         {
             if (api.User_Validate(id_usr, password))
             {
                 List<ImUser> users = new List<ImUser>(api.Contact_GetMyContacts(id_usr, password).ToList());
                 return users;
             }
             else
             {
                 return null;
             }
         }
     }
     catch (Exception)
     {
         return null;
     }
 }