96 lines
2.5 KiB
C#
96 lines
2.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace gehGassi.LocalNotifications
|
|
{
|
|
/// <summary>
|
|
/// Android Einstellungen
|
|
/// </summary>
|
|
public class AndroidOptions
|
|
{
|
|
/// <summary>
|
|
/// Id des Kanals
|
|
/// </summary>
|
|
public string ChannelId { get; set; } = Constants.DEFAULT_CHANNEL_ID;
|
|
|
|
/// <summary>
|
|
/// Name des Kanals
|
|
/// </summary>
|
|
public string ChannelName { get; set; } = "General";
|
|
|
|
/// <summary>
|
|
/// Erlaubt wenn Idle
|
|
/// </summary>
|
|
public bool AllowWhileIdle { get; set; }
|
|
|
|
/// <summary>
|
|
/// Auto-Stornierung
|
|
/// </summary>
|
|
public bool AutoCancel { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Aktion die ausgeführt werden soll.
|
|
/// None, CreateIfNotExists, Update
|
|
/// </summary>
|
|
public NotificationChannelAction ChannelAction { get; set; } = NotificationChannelAction.None;
|
|
|
|
/// <summary>
|
|
/// Sound abspielen
|
|
/// </summary>
|
|
public bool PlaySound { get; set; }
|
|
|
|
/// <summary>
|
|
/// Sound der abgespielt werden soll
|
|
/// </summary>
|
|
public string Sound { get; set; }
|
|
|
|
/// <summary>
|
|
/// Vibration aktivieren
|
|
/// </summary>
|
|
public bool EnableVibration { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Vibrations-Typ
|
|
/// </summary>
|
|
public long[] VibrationPatern { get; set; }
|
|
|
|
/// <summary>
|
|
/// Icon das angezeigt werden soll
|
|
/// </summary>
|
|
public string IconName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Farbe
|
|
/// </summary>
|
|
public int? Color { get; set; }
|
|
|
|
/// <summary>
|
|
/// Soll LED aktiviert werden?
|
|
/// </summary>
|
|
public bool EnableLights { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Soll ein Badge angezeigt werden?
|
|
/// </summary>
|
|
public bool ShowBadge { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Wiederholt?
|
|
/// </summary>
|
|
public bool OnGoing { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Priorität der Nachricht
|
|
/// </summary>
|
|
public NotificationPriority Priority { get; set; } = NotificationPriority.High;
|
|
|
|
/// <summary>
|
|
/// Timeout der Nachricht
|
|
/// </summary>
|
|
public TimeSpan? TimeoutAfter { get; set; }
|
|
}
|
|
}
|