public void showConversationPage(ConversationModel conversation) { ConversationPage conversationPage = new ConversationPage(); conversationPage.Title = conversation.ConversationTitle; conversationPage.BindingContext = new ConversationViewModel(conversation); navigation.PushAsync(conversationPage); }
public long HandleInAppNotification(string title, string message, long lUid, string isChat, string imageSrc) { Action _9__1 = null; Execute.ExecuteOnUIThread(delegate { ConversationPage conversationPage = ((App)Application.Current).RootFrame.Content as ConversationPage; long num = 0L; if (conversationPage != null) { num = conversationPage.ConversationVM.UserOrCharId; } if (num != lUid) { if (AppGlobalStateManager.Current.GlobalState.NotificationsEnabled) { string arg_77_0 = title; string arg_77_1 = message; Action arg_77_2; if ((arg_77_2 = _9__1) == null) { arg_77_2 = (_9__1 = delegate { Navigator.Current.NavigateToConversation(lUid, isChat == bool.TrueString, false, "", 0, false); }); } InAppToastNotification.Show(arg_77_0, arg_77_1, arg_77_2, imageSrc); } if (AppGlobalStateManager.Current.GlobalState.VibrationsEnabled) { DeviceManager.Vibrate(); } if (AppGlobalStateManager.Current.GlobalState.SoundEnabled) { DeviceManager.PlaySound(); } } }); return(lUid); }
public static void setConversationController(ConversationPage conversationController) { VSAppCenter.conversationController = conversationController; }
public PageListboxItem(ConversationPage page, int index) { this.Page = page; this.RefreshLabel(index); }