internal static WnsSecondaryTile CreateWnsSecondaryTile(NotificationSecondaryTile notificationSecondaryTile) { WnsSecondaryTile secondaryTile = new WnsSecondaryTile(); // Strip the tags. secondaryTile.Tags = new List <string>(); secondaryTile.PushChannelExpired = null; secondaryTile.Templates = new Dictionary <string, InstallationTemplate>(); if (notificationSecondaryTile != null) { secondaryTile.PushChannel = notificationSecondaryTile.PushChannel; // Parse each template for the Secondary Tile and add to installation object. foreach (string templateName in notificationSecondaryTile.Templates.Keys) { NotificationTemplate template = notificationSecondaryTile.Templates[templateName]; secondaryTile.Templates[templateName] = CreateInstallationTemplate(template, NotificationPlatform.Wns); } } else { secondaryTile.PushChannel = string.Empty; } return(secondaryTile); }
internal static WnsSecondaryTile CreateWnsSecondaryTile(NotificationSecondaryTile notificationSecondaryTile) { WnsSecondaryTile secondaryTile = new WnsSecondaryTile(); // Strip the tags. secondaryTile.Tags = new List<string>(); secondaryTile.PushChannelExpired = null; secondaryTile.Templates = new Dictionary<string, InstallationTemplate>(); if (notificationSecondaryTile != null) { secondaryTile.PushChannel = notificationSecondaryTile.PushChannel; // Parse each template for the Secondary Tile and add to installation object. foreach (string templateName in notificationSecondaryTile.Templates.Keys) { NotificationTemplate template = notificationSecondaryTile.Templates[templateName]; secondaryTile.Templates[templateName] = CreateInstallationTemplate(template, NotificationPlatform.Wns); } } else { secondaryTile.PushChannel = string.Empty; } return secondaryTile; }