-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMastodonObserver.cs
36 lines (29 loc) · 1006 Bytes
/
MastodonObserver.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 FNF.BouyomiChanApp;
using FNF.XmlSerializerSetting;
using FNF.Utility;
using System.Diagnostics;
using MastodonObserver.Util;
namespace MastodonObserver {
public class MastodonObserver : IPlugin {
private string settingPath = Base.CallAsmPath + Base.CallAsmName + ".setting";
private Settings setting = null;
private SettingFormData formData = null;
public string Name => Properties.Settings.Default.Title;
public string Version => Properties.Settings.Default.Version;
public string Caption => Properties.Settings.Default.Description;
public ISettingFormData SettingFormData => this.formData;
public void Begin() {
this.setting = new Settings();
this.setting.Load(settingPath);
this.formData = new SettingFormData(this.setting);
Mastodon mstdn = new Mastodon(this.setting.InstanceURL, this.setting.Token);
Debug.WriteLine(mstdn.Test("TEST"));
//Pub.AddTalkTask();
return;
}
public void End() {
this.setting.Save(settingPath);
return;
}
}
}