2017-10-03 04:40:37 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
|
{
|
|
|
|
|
|
public class NotificationOptions
|
|
|
|
|
|
{
|
2017-10-15 17:03:07 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A title for the notification, which will be shown at the top of the notification
|
|
|
|
|
|
/// window when it is shown
|
|
|
|
|
|
/// </summary>
|
2017-10-03 04:40:37 +02:00
|
|
|
|
public string Title { get; set; }
|
2017-10-15 17:03:07 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The body text of the notification, which will be displayed below the title or
|
|
|
|
|
|
/// subtitle
|
|
|
|
|
|
/// </summary>
|
2017-10-03 04:40:37 +02:00
|
|
|
|
public string Body { get; set; }
|
2017-10-15 17:03:07 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A subtitle for the notification, which will be displayed below the title.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Subtitle { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 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
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Icon { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Whether or not to add an inline reply option to the notification.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool HasReply { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The placeholder to write in the inline reply input field.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string ReplyPlaceholder { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The name of the sound file to play when the notification is shown.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Sound { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public NotificationOptions(string title, string body)
|
|
|
|
|
|
{
|
|
|
|
|
|
Title = title;
|
|
|
|
|
|
Body = body;
|
|
|
|
|
|
}
|
2017-10-03 04:40:37 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|