Files
Electron.NET/src/ElectronNET.API/API/Entities/DisplayBalloonOptions.cs

69 lines
1.9 KiB
C#
Raw Normal View History

using System.Runtime.Versioning;
namespace ElectronNET.API
2017-10-18 05:30:36 +02:00
{
/// <summary>
///
/// </summary>
public enum DisplayBalloonIconType
{
none,
info,
warning,
error,
custom
}
/// <remarks>Up-to-date with Electron API 39.2</remarks>
[SupportedOSPlatform("Windows")]
2017-10-18 05:30:36 +02:00
public class DisplayBalloonOptions
{
/// <summary>
/// Gets or sets the icon.
/// </summary>
/// <value>
/// The icon.
/// </value>
2017-10-18 05:30:36 +02:00
public string Icon { get; set; }
/// <summary>
/// Gets or sets the title.
/// </summary>
/// <value>
/// The title.
/// </value>
2017-10-18 05:30:36 +02:00
public string Title { get; set; }
/// <summary>
/// Gets or sets the content.
/// </summary>
/// <value>
/// The content.
/// </value>
2017-10-18 05:30:36 +02:00
public string Content { get; set; }
/// <summary>
/// (optional) - Icon type for the balloon: none, info, warning, error or custom.
/// Default is custom.
/// </summary>
public DisplayBalloonIconType IconType { get; set; } = DisplayBalloonIconType.custom;
/// <summary>
/// (optional) - Use the large version of the icon. Default is true.
/// Maps to Windows NIIF_LARGE_ICON.
/// </summary>
public bool LargeIcon { get; set; } = true;
/// <summary>
/// (optional) - Do not play the associated sound. Default is false.
/// Maps to Windows NIIF_NOSOUND.
/// </summary>
public bool NoSound { get; set; }
/// <summary>
/// (optional) - Do not display the balloon if the current user is in "quiet time".
/// Default is false. Maps to Windows NIIF_RESPECT_QUIET_TIME.
/// </summary>
public bool RespectQuietTime { get; set; }
2017-10-18 05:30:36 +02:00
}
}