forked from ejholmes/uTorrent-Notifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClassRegistry.cs
77 lines (66 loc) · 1.78 KB
/
ClassRegistry.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
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace uTorrentNotifier
{
public class ClassRegistry : IDisposable
{
private WebUIAPI _webuiapi;
private Config _config;
private Prowl _prowl;
private Growl _growl;
private Twitter _twitter;
private Boxcar _boxcar;
public ClassRegistry()
{
this._config = new Config();
this._webuiapi = new WebUIAPI(this._config);
this._prowl = new Prowl(this._config.Prowl);
this._growl = new Growl(this._config.Growl);
this._twitter = new Twitter(this._config.Twitter);
this._boxcar = new Boxcar(this._config.Boxcar);
}
public Config Config
{
get { return this._config; }
set { this._config = value; }
}
public WebUIAPI uTorrent
{
get { return this._webuiapi; }
}
public Prowl Prowl
{
get { return this._prowl; }
}
public Growl Growl
{
get { return this._growl; }
}
public Twitter Twitter
{
get { return this._twitter; }
}
public Boxcar Boxcar
{
get { return this._boxcar; }
}
public static Version Version
{
get { return System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; }
}
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
this._webuiapi.Dispose();
}
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
}
}