private void GetMessages() { API.Message m = new API.Message { User_from = User.Email }; m.MessageGet += M_MessageGet; m.Get(0, 100, Core.Token); }
public MessageSnippet(MessageType type, API.Message message) { InitializeComponent(); Type = type; labelDate.Content = message.Sended.ToString(); labelUser.Content = message.User_from; textBlockMessage.Text = message.MessageContent; }
private void Send() { if (textBoxMessage.Text.Length > 0) { API.Message m = new API.Message { User_from = Core.User.Email, User_to = User.Email, MessageContent = textBoxMessage.Text }; m.MessageSend += M_MessageSend; m.Send(Core.Token); textBoxMessage.Text = ""; } }