Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 29 additions & 13 deletions ElectronNET.API/Entities/NotificationOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@ public class NotificationOptions
{
/// <summary>
/// A title for the notification, which will be shown at the top of the notification
/// window when it is shown
/// window when it is shown.
/// </summary>
public string Title { get; set; }

/// <summary>
/// The body text of the notification, which will be displayed below the title or
/// subtitle
/// A subtitle for the notification, which will be displayed below the title.
/// </summary>
public string Body { get; set; }
public string SubTitle { get; set; }

/// <summary>
/// A subtitle for the notification, which will be displayed below the title.
/// The body text of the notification, which will be displayed below the title or
/// subtitle.
/// </summary>
public string Subtitle { get; set; }
public string Body { get; set; }

/// <summary>
/// Whether or not to emit an OS notification noise when showing the notification
/// Whether or not to emit an OS notification noise when showing the notification.
/// </summary>
public bool Silent { get; set; }

/// <summary>
/// An icon to use in the notification
/// An icon to use in the notification.
/// </summary>
public string Icon { get; set; }

Expand All @@ -40,6 +40,11 @@ public class NotificationOptions
/// </summary>
public bool HasReply { get; set; }

/// <summary>
/// The timeout duration of the notification. Can be 'default' or 'never'.
/// </summary>
public string TimeoutType { get; set; }

/// <summary>
/// The placeholder to write in the inline reply input field.
/// </summary>
Expand All @@ -50,16 +55,27 @@ public class NotificationOptions
/// </summary>
public string Sound { get; set; }

/// <summary>
/// The urgency level of the notification. Can be 'normal', 'critical', or 'low'.
/// </summary>
public string Urgency { get; set; }

/// <summary>
/// Actions to add to the notification. Please read the available actions and
/// limitations in the NotificationAction documentation
/// limitations in the NotificationAction documentation.
/// </summary>
public NotificationAction Actions { get; set; }

/// <summary>
/// Emitted when the notification is shown to the user,
/// note this could be fired multiple times as a notification
/// can be shown multiple times through the Show() method.
/// A custom title for the close button of an alert. An empty string will cause the
/// default localized text to be used.
/// </summary>
public string CloseButtonText { get; set; }

/// <summary>
/// Emitted when the notification is shown to the user, note this could be fired
/// multiple times as a notification can be shown multiple times through the Show()
/// method.
/// </summary>
[JsonIgnore]
public Action OnShow { get; set; }
Expand Down Expand Up @@ -148,4 +164,4 @@ public NotificationOptions(string title, string body)
Body = body;
}
}
}
}