/// <summary> /// Vrati vsechny nove uzivatelske zpravy /// </summary> /// <param name="nick"></param> /// <param name="password"></param> /// <returns></returns> public static List<ImMessage> Message_GetMyNewMessages(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_GetMyNewMessages(id_usr, password)); return messages; } else { return null; } } } catch (Exception) { return null; } }