Esempio n. 1
0
        public void OnMessageAdded(Message message)
        {
            App.IsMessageAdded = false;

            if (MainActivity.GeneralChannel == message.Channel)
            {
                MessagingCenter.Send(this, "NewMessage", message);
                foreach (var channelMessage in MainActivity.ChannelMessages)
                {
                    foreach (var messages in channelMessage)
                    {
                        if (messages.Channel == message.Channel)
                        {
                            channelMessage.Add(message);
                            return;
                        }
                    }
                }
            }
            else
            {
                foreach (var channelMessage in MainActivity.ChannelMessages)
                {
                    foreach (var messages in channelMessage)
                    {
                        if (messages.Channel == message.Channel)
                        {
                            channelMessage.Add(message);
                            return;
                        }
                    }
                }
            }
        }
Esempio n. 2
0
 public void OnMessageUpdated(Message message, Message.UpdateReason reason)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
 public void OnMessageDeleted(Message message)
 {
     throw new NotImplementedException();
 }