public override void ResolveNotificationData(NotificationData notifiData) { NewEmail_1_NotificationData data = (NewEmail_1_NotificationData)notifiData; FromWhom.text = data.FromWhom; Subject.text = data.Subject; }
public void OnExecute(EmailExecutionObj exeObj) { if (NotificationController.Instance && exeObj.IsPlayerTalking == false) { NewEmail_1_NotificationData data = NotificationController.Instance.CreateDataInstance(Utility.App.Mail, "NewEmail") as NewEmail_1_NotificationData; data.FromWhom = exeObj.WithWho; data.Subject = exeObj.Subject; NotificationController.Instance.PushNotification(data, exeObj.Situation_Id.ToString()); AudioManager.Instance.Play(AudioEnum.Email_Notifi_A); } if (exeObj.IsPlayerTalking) { AudioManager.Instance.Play(AudioEnum.Email_Sent); } if (m_currentPage == Page.List) { EmailListView.UpdateView(); } if (m_currentPage == Page.Content) { EmailContentView.UpdateView(); EmailContentView.ScrollToBottom(); if (EmailContentView.CurrentSituationId == exeObj.Situation_Id) { EmailContentView.OnExecuteObj(exeObj); } } }