/// <summary> /// Vrati vsechny uzivatelske zpravy /// </summary> /// <param name="nick"></param> /// <param name="password"></param> /// <returns></returns> public static List<ImMessage> Message_GetMyMessages(int id_usr, string password) { try { using (MessagingServiceClient api = new MessagingServiceClient()) { if (api.User_Validate(id_usr, password)) { List<ImMessage> messages = new List<ImMessage>(api.Message_GetMyMessages(id_usr, password)); return messages; } else { return null; } } } catch (Exception) { return null; } }