Ejemplo n.º 1
0
        public ChatPage()
        {
            InitializeComponent();

            MessagingCenter.Subscribe <Pages.ConversationPage, Model.Conversation>(this, "ConvoProp", (page, data) =>
            {
                rm = data;

                _lstChat.BindingContext = db.subChat(data.Key);
                GroupTitle.Text         = data.Name;
                ConvoKey = data.Key;

                MessagingCenter.Unsubscribe <Pages.ConversationPage, Model.Conversation>(this, "ConvoProp");
            });
        }
Ejemplo n.º 2
0
 //New Conversation
 public async Task createConversation(Model.Conversation convo)
 {
     await fbClient.Child("Conversation")
     .PostAsync(convo);
 }