-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathIRenamerConfig.cs
36 lines (31 loc) · 960 Bytes
/
IRenamerConfig.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
namespace Shoko.Plugin.Abstractions;
/// <summary>
/// Interface for a renamer configuration type.
/// </summary>
public interface IRenamerConfig
{
/// <summary>
/// The ID of the renamer instance
/// </summary>
public int ID { get; }
/// <summary>
/// The name of the renamer instance, mostly for user distinction
/// </summary>
public string Name { get; }
/// <summary>
/// The type of the renamer, always should be checked against the Renamer ID to ensure that the script should be executable against your renamer.
/// </summary>
public Type? Type { get; }
}
/// <summary>
/// Interface for a renamer configuration type with settings.
/// </summary>
/// <typeparam name="T">The type of the settings.</typeparam>
public interface IRenamerConfig<T> : IRenamerConfig where T : class
{
/// <summary>
/// The settings for the renamer
/// </summary>
T Settings { get; set; }
}