private void BindUserMessage1(FbpageInboxUserInfo fbpageInboxUserInfo) { //Data Retrive MessagingListInfo = new ObservableCollection <FbUserMessageInfo>(); if (fbpageInboxUserInfo.InboxUserName.Equals("YoYO baba")) { MessagingListInfo.Add(new FbUserMessageInfo { UserType = 0, Message = "rahul baba" }); MessagingListInfo.Add(new FbUserMessageInfo { UserType = 1, Message = "YoYO baba" }); MessagingListInfo.Add(new FbUserMessageInfo { UserType = 0, Message = "Tiger baba" }); } else if (fbpageInboxUserInfo.InboxUserName.Equals("Tiger baba")) { MessagingListInfo.Add(new FbUserMessageInfo { UserType = 0, Message = "Gaurav baba" }); MessagingListInfo.Add(new FbUserMessageInfo { UserType = 1, Message = "Sonam baba" }); MessagingListInfo.Add(new FbUserMessageInfo { UserType = 0, Message = "kajal baba" }); } else { ChromeWebDriver.Navigate().GoToUrl("https://www.facebook.com/pages/?category=your_pages"); ChromeWebDriver.Navigate().GoToUrl("https://www.facebook.com/TP-1996120520653285/inbox/?selected_item_id=100002948674558"); } }
private void BindUserMessage(FbpageInboxUserInfo fbpageInboxUserInfo) { //Data Retrive MessagingListInfo = new ObservableCollection <FbUserMessageInfo>(); if (fbpageInboxUserInfo.InboxUserName.Equals("YoYO baba")) { MessagingListInfo.Add(new FbUserMessageInfo { UserType = 0, Message = "rahul baba" }); MessagingListInfo.Add(new FbUserMessageInfo { UserType = 1, Message = "YoYO baba" }); MessagingListInfo.Add(new FbUserMessageInfo { UserType = 0, Message = "Tiger baba" }); } else if (fbpageInboxUserInfo.InboxUserName.Equals("Tiger baba")) { MessagingListInfo.Add(new FbUserMessageInfo { UserType = 0, Message = "Gaurav baba" }); MessagingListInfo.Add(new FbUserMessageInfo { UserType = 1, Message = "Sonam baba" }); MessagingListInfo.Add(new FbUserMessageInfo { UserType = 0, Message = "kajal baba" }); } else { MessagingListInfo.Add(new FbUserMessageInfo { UserType = 0, Message = "Deepak baba" }); MessagingListInfo.Add(new FbUserMessageInfo { UserType = 1, Message = "Saurab baba" }); MessagingListInfo.Add(new FbUserMessageInfo { UserType = 0, Message = "abi baba" }); GetUserChatBoxHistory(); } }