jellyfin-plugin-webhook/Jellyfin.Plugin.Webhook/Configuration/PluginConfiguration.cs

87 lines
2.7 KiB
C#

using System;
using Jellyfin.Plugin.Webhook.Destinations.Discord;
using Jellyfin.Plugin.Webhook.Destinations.Generic;
using Jellyfin.Plugin.Webhook.Destinations.GenericForm;
using Jellyfin.Plugin.Webhook.Destinations.Gotify;
using Jellyfin.Plugin.Webhook.Destinations.Mqtt;
using Jellyfin.Plugin.Webhook.Destinations.Pushbullet;
using Jellyfin.Plugin.Webhook.Destinations.Pushover;
using Jellyfin.Plugin.Webhook.Destinations.Slack;
using Jellyfin.Plugin.Webhook.Destinations.Smtp;
using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.Webhook.Configuration;
/// <summary>
/// Webhook plugin configuration.
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
/// <summary>
/// Initializes a new instance of the <see cref="PluginConfiguration"/> class.
/// </summary>
public PluginConfiguration()
{
ServerUrl = string.Empty;
DiscordOptions = Array.Empty<DiscordOption>();
GenericOptions = Array.Empty<GenericOption>();
GenericFormOptions = Array.Empty<GenericFormOption>();
GotifyOptions = Array.Empty<GotifyOption>();
PushbulletOptions = Array.Empty<PushbulletOption>();
PushoverOptions = Array.Empty<PushoverOption>();
SlackOptions = Array.Empty<SlackOption>();
SmtpOptions = Array.Empty<SmtpOption>();
MqttOptions = Array.Empty<MqttOption>();
}
/// <summary>
/// Gets or sets the jellyfin server url.
/// </summary>
public string ServerUrl { get; set; }
/// <summary>
/// Gets or sets the discord options.
/// </summary>
public DiscordOption[] DiscordOptions { get; set; }
/// <summary>
/// Gets or sets the generic options.
/// </summary>
public GenericOption[] GenericOptions { get; set; }
/// <summary>
/// Gets or sets the generic form options.
/// </summary>
public GenericFormOption[] GenericFormOptions { get; set; }
/// <summary>
/// Gets or sets the gotify options.
/// </summary>
public GotifyOption[] GotifyOptions { get; set; }
/// <summary>
/// Gets or sets the pushbullet options.
/// </summary>
public PushbulletOption[] PushbulletOptions { get; set; }
/// <summary>
/// Gets or sets the pushover options.
/// </summary>
public PushoverOption[] PushoverOptions { get; set; }
/// <summary>
/// Gets or sets the slack options.
/// </summary>
public SlackOption[] SlackOptions { get; set; }
/// <summary>
/// Gets or sets the smtp options.
/// </summary>
public SmtpOption[] SmtpOptions { get; set; }
/// <summary>
/// Gets or sets the mqtt options.
/// </summary>
public MqttOption[] MqttOptions { get; set; }
}