예제 #1
0
        public void SendPushNotification(PushNotificationSendModel notificationModel)
        {
            var notificationRecievedModel = new PushNotificationRecieveModel()
            {
                NotificationText = notificationModel.NotificationText,
                Time             = notificationModel.Time
            };

            var args = new NotificationRecievedEventArgs(notificationRecievedModel);

            if (NotificationRecieved != null)
            {
                NotificationRecieved(this, args);
            }
        }
 public NotificationRecievedEventArgs(PushNotificationRecieveModel notification) : base()
 {
     this.Notification = notification;
 }