public void getLocalMessages() { foreach (Message message in messageLocalDAO.GetMessages(chat.ChatID)) { MessageList.Add(message); } }
public static List<Entidades.Message> GetMessages(string username, bool isPrivate) { MessageDAO messageDAO = new MessageDAO(); List<Entidades.Message> messages = messageDAO.GetMessages(username, isPrivate); return messages; }
public static ObservableCollection <Message> GetMessages() { return(MessageDAO.GetMessages(ChannelService.CurrentChannel.Id)); }