Commit 9c330b88 by Sebastián Katzer

Parse and read attachments attribute

parent 52ef285a
...@@ -121,6 +121,11 @@ namespace LocalNotificationProxy.LocalNotification ...@@ -121,6 +121,11 @@ namespace LocalNotificationProxy.LocalNotification
options.Data = node.GetAttribute("data"); options.Data = node.GetAttribute("data");
} }
if (node.GetAttributeNode("attachments") != null)
{
options.Attachments = node.GetAttribute("attachments").Split(',');
}
if (node.GetAttributeNode("action") != null) if (node.GetAttributeNode("action") != null)
{ {
options.Action = node.GetAttribute("action"); options.Action = node.GetAttribute("action");
...@@ -175,6 +180,11 @@ namespace LocalNotificationProxy.LocalNotification ...@@ -175,6 +180,11 @@ namespace LocalNotificationProxy.LocalNotification
node.SetAttribute("data", this.Data); node.SetAttribute("data", this.Data);
} }
if (this.Attachments != null)
{
node.SetAttribute("attachments", string.Join(",", this.Attachments));
}
if (action != null) if (action != null)
{ {
node.SetAttribute("action", action); node.SetAttribute("action", action);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment