-
Notifications
You must be signed in to change notification settings - Fork 1
/
BaseProtocol.cs
34 lines (22 loc) · 1.1 KB
/
BaseProtocol.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
using System.Threading.Tasks;
namespace TrixieBot
{
public abstract class BaseProtocol
{
public Config config;
protected BaseProtocol(Config config)
{
this.config = config;
}
abstract public Task<bool> Start();
abstract public void SendFile(string destination, string Url, string filename = "", string referrer = "http://duckduckgo.com");
abstract public void SendImage(string destination, string Url, string caption, string referrer = "http://duckduckgo.com");
abstract public void SendHTMLMessage(string destination, string message);
abstract public void SendLocation(string destination, float latitude, float longitude);
abstract public void SendMarkdownMessage(string destination, string message);
abstract public void SendPlainTextMessage(string destination, string message);
abstract public void SendStatusTyping(string destination);
abstract public void SendStatusUploadingFile(string destination);
abstract public void SendStatusUploadingPhoto(string destination);
}
}