private void WriteWpOptions(JsonWriter writer, WindowsPhoneOptions options) { writer.WriteProperty("wp"); if (options.Notification.WPNotificationType == WPNotificationType.Toast) WriteToastOptions(writer, options.Notification as ToastNotification); else if (options.Notification.WPNotificationType == WPNotificationType.Tile) WriteTileOptions(writer, options.Notification as TileNotification); if (options.Notification.WPNotificationType == WPNotificationType.Raw) WriteRawOptions(writer, options.Notification as RawNotification); }
private void WriteWpOptions(JsonWriter writer, WindowsPhoneOptions options) { writer.WriteProperty("wp"); if (options.Notification.WPNotificationType == WPNotificationType.Toast) { WriteToastOptions(writer, options.Notification as ToastNotification); } else if (options.Notification.WPNotificationType == WPNotificationType.Tile) { WriteTileOptions(writer, options.Notification as TileNotification); } if (options.Notification.WPNotificationType == WPNotificationType.Raw) { WriteRawOptions(writer, options.Notification as RawNotification); } }