예제 #1
0
        public NotificationRequest(string data)
        {
            Dictionary <string, object> notificationDictionary = (Dictionary <string, object>)SA.Common.Data.Json.Deserialize(data);

            _Id = (string)notificationDictionary ["id"];
            Dictionary <string, object> contentDictionary = (Dictionary <string, object>)notificationDictionary ["content"];
            Dictionary <string, object> triggerDictionary = (Dictionary <string, object>)notificationDictionary ["trigger"];

            _Content = new NotificationContent(contentDictionary);
            _Trigger = NotificationTrigger.triggerFromDictionary(triggerDictionary);
        }
예제 #2
0
 public NotificationRequest(string id, NotificationContent content, NotificationTrigger trigger)
 {
     _Id      = id;
     _Content = content;
     _Trigger = trigger;
 }