-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHSPI.cs
More file actions
68 lines (53 loc) · 2.13 KB
/
HSPI.cs
File metadata and controls
68 lines (53 loc) · 2.13 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
63
64
65
66
67
68
using System;
using HomeSeer.Jui.Views;
using HomeSeer.PluginSdk;
namespace HSPI_HelloWorldPlugin_CS {
public class HSPI : AbstractPlugin {
#region Properties
/// <inheritdoc />
/// <remarks>
/// This ID is used to identify the plugin and should be unique across all plugins
/// <para>
/// This must match the MSBuild property $(PluginId) as this will be used to copy
/// all of the HTML feature pages located in .\html\ to a relative directory
/// within the HomeSeer html folder.
/// </para>
/// <para>
/// The relative address for all of the HTML pages will end up looking like this:
/// ..\Homeseer\Homeseer\html\HelloWorldPlugin_CS\
/// </para>
/// </remarks>
public override string Id { get; } = "HelloWorldPlugin_CS";
/// <inheritdoc />
/// <remarks>
/// This is the readable name for the plugin that is displayed throughout HomeSeer
/// </remarks>
public override string Name { get; } = "HelloWorldPlugin-CS";
/// <inheritdoc />
protected override string SettingsFileName { get; } = "HelloWorldPlugin-CS.ini";
#endregion
public HSPI() {
//Initialize the plugin
//Enable internal debug logging to console
LogDebug = true;
//Setup anything that needs to be configured before a connection to HomeSeer is established
// like initializing the starting state of anything needed for the operation of the plugin
}
protected override void Initialize() {
Console.WriteLine("Initialized");
Status = PluginStatus.Ok();
}
/// <inheritdoc />
/// <remarks>
/// Required override
/// </remarks>
protected override bool OnSettingChange(string pageId, AbstractView currentView, AbstractView changedView) {
return true;
}
/// <inheritdoc />
/// <remarks>
/// Required override
/// </remarks>
protected override void BeforeReturnStatus() {}
}
}