-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathAuxiliaryApplication.cs
More file actions
62 lines (54 loc) · 1.77 KB
/
AuxiliaryApplication.cs
File metadata and controls
62 lines (54 loc) · 1.77 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using Newtonsoft.Json;
namespace PlexServiceCommon
{
/// <summary>
/// Auxiliary application class.
/// This class represents an application that should be run when plex runs
/// </summary>
[JsonObject(MemberSerialization.OptIn)]
public class AuxiliaryApplication
{
/// <summary>
/// Friendly name of the application
/// </summary>
[JsonProperty]
public string Name { get; set; }
/// <summary>
/// Path of the executable to run
/// </summary>
[JsonProperty]
public string FilePath { get; set; }
//The working folder to set
[JsonProperty]
public string WorkingFolder { get; set; }
/// <summary>
/// any arguments to pass to the executable
/// </summary>
[JsonProperty]
public string Argument { get; set; }
/// <summary>
/// A flag to determine if the application should be kept running (service like) or if it can run and stop (like a script)
/// </summary>
[JsonProperty]
public bool KeepAlive { get; set; }
/// <summary>
/// A flag to determine if the application's std. output should be redirected to the Plex Service log.
/// </summary>
[JsonProperty]
public bool LogOutput { get; set; }
/// <summary>
/// A url link to the auxiliary application interface.
/// </summary>
[JsonProperty]
public string Url { get; set; }
public AuxiliaryApplication()
{
Name = string.Empty;
FilePath = string.Empty;
WorkingFolder = string.Empty;
Argument = string.Empty;
KeepAlive = true;
LogOutput = true;
}
}
}