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); }
public NotificationRequest(string id, NotificationContent content, NotificationTrigger trigger) { _Id = id; _Content = content; _Trigger = trigger; }