Beispiel #1
0
        private void seed()
        {
            List <NotificationModel> seedList = new List <NotificationModel>();

            seedList.Add(new NotificationModel("someOne", "testUser", "", "Follow"));
            seedList.Add(new NotificationModel("someOne2", "testUser", "1234", "Like"));

            NotificationsList.Add("testUser", seedList);
        }
Beispiel #2
0
 public void AddNotification(NotificationModel notificationModel)
 {
     if (NotificationsList.ContainsKey(notificationModel.TargetClient))
     {
         NotificationsList[notificationModel.TargetClient].Add(notificationModel);;
     }
     else
     {
         List <NotificationModel> list = new List <NotificationModel>();
         list.Add(notificationModel);
         NotificationsList.Add(notificationModel.TargetClient, list);
     }
 }