Browse Source

Renamed image to icon

Sebastián Katzer 8 năm trước cách đây
mục cha
commit
b7eb94cb42

+ 1 - 1
src/windows/LocalNotificationProxy/LocalNotificationProxy/LocalNotification/Builder.cs

@@ -104,7 +104,7 @@ namespace LocalNotificationProxy.LocalNotification
                             }
                         },
 
-                        AppLogoOverride = this.Content.Image
+                        AppLogoOverride = this.Content.Icon
                     }
                 },
 

+ 2 - 2
src/windows/LocalNotificationProxy/LocalNotificationProxy/LocalNotification/Notification.cs

@@ -101,12 +101,12 @@
         /// <summary>
         /// Gets a GenericAppLogo object based on the specified icon uri.
         /// </summary>
-        public ToastGenericAppLogo Image
+        public ToastGenericAppLogo Icon
         {
             get
             {
                 var image = new ToastGenericAppLogo();
-                var path = this.Options.Image;
+                var path = this.Options.Icon;
 
                 if (path == null || path.StartsWith("res://logo"))
                 {

+ 4 - 4
src/windows/LocalNotificationProxy/LocalNotificationProxy/LocalNotification/Options.cs

@@ -58,7 +58,7 @@ namespace LocalNotificationProxy.LocalNotification
         /// <summary>
         /// Gets or sets the notification image.
         /// </summary>
-        public string Image { get; set; }
+        public string Icon { get; set; }
 
         /// <summary>
         /// Gets or sets a value indicating whether the popup shall be visible.
@@ -123,7 +123,7 @@ namespace LocalNotificationProxy.LocalNotification
 
             if (node.GetAttributeNode("image") != null)
             {
-                options.Image = node.GetAttribute("image");
+                options.Icon = node.GetAttribute("image");
             }
 
             if (node.GetAttributeNode("data") != null)
@@ -185,9 +185,9 @@ namespace LocalNotificationProxy.LocalNotification
                 node.SetAttribute("sound", this.Sound);
             }
 
-            if (this.Image != null)
+            if (this.Icon != null)
             {
-                node.SetAttribute("image", this.Image);
+                node.SetAttribute("image", this.Icon);
             }
 
             if (this.Data != null)