Example #1
0
        public ParseResult Initialize(XmlDocument content, PreviewNotificationData data)
        {
            ParseResult result = _parser.ParseToast(content.GetXml(), CurrFeatureSet);

            if (result.IsOkForRender())
            {
                _lastDataBindingValues = new DataBindingValues(data);
                result.Toast.ApplyDataBinding(_lastDataBindingValues);

                if (result.IsOkForRender())
                {
                    InitializeContent(result.Toast);
                }
            }

            return(result);
        }
Example #2
0
 public JsonParseToastResult InitializeFromJson(string json, PreviewNotificationData data)
 {
     return(new Parsers.JsonParseToastResult());
 }
Example #3
0
 public void Update(PreviewNotificationData data)
 {
     // No-op for now
 }