Пример #1
0
        public void Load()
        {
            if (Model.Value != null)
            {
                ConversationInvitationModel content = Newtonsoft.Json.JsonConvert.DeserializeObject <ConversationInvitationModel>(Model.Value.Content.ToString());
                UserModel fromUser = UserService.GetUserById(content.FromUserID);

                this.FromUserAvatar.ImageSource = Ultilities.ConvertBase64StringToBitmapImage(fromUser.Avatar);
                this.ContentText.Text           = "You have received an invitation to join the conversation by " + fromUser.Fullname;
            }
        }
Пример #2
0
        private void _Event_AcceptButton_Clicked(object sender, RoutedEventArgs e)
        {
            if (Model.Value != null)
            {
                ConversationInvitationModel content = Newtonsoft.Json.JsonConvert.DeserializeObject <ConversationInvitationModel>(Model.Value.Content.ToString());

                NotificationService.AcceptInvitationJoinConversation(content.ConversationID, Model.Key, content.FromUserID, content.ToUserID);
            }
            else
            {
                MessageBox.Show("Error");
            }
        }