Пример #1
0
		public async Task setUpdateSeen(string modelId, NotificationModelType modelType)
		{
			foreach (Notification n in App.coreView.notifications.unseenNotifications)
			{
				System.Diagnostics.Debug.WriteLine(n.ModelId + ", " + n.ModelType);

				if (n.ModelId == modelId && !n.Seen && n.ModelType == modelType)
				{
					n.Seen = true;
					await MessageApiManager.SetNotificationSeen(n.InAppNotificationId);
				}
			}
			await App.coreView.notifications.UpdateNotifications(false);
			if (modelType == NotificationModelType.Event) { App.coreView.joinedEvents.UpdateList(false, ""); }
			else if (modelType == NotificationModelType.ProfileConversation) { 
				await App.coreView.profileConversatios.UpdateConversations(false);
				await App.coreView.otherConversatios.UpdateConversations(false);
			}
		}
Пример #2
0
		public bool checkIfUnseen(string modelId, NotificationModelType modelType)
		{
			foreach (Notification n in App.coreView.notifications.unseenNotifications)
			{
				if (n.ModelId == modelId && !n.Seen && n.ModelType == modelType)
				{
					return true;
				}
			}
			return false;
		}