-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWaConfig.cs
More file actions
40 lines (32 loc) · 1.03 KB
/
WaConfig.cs
File metadata and controls
40 lines (32 loc) · 1.03 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
namespace WhatsAppHelper
{
public class WaConfig
{
private string token;
private bool _isChangeToken;
public Uri WaApiUrl => new Uri("https://graph.facebook.com/v17.0/");
public string WaApiVersion => "v17.0";
public WaConfig(string clientId, string clientSecret, string idPhoneNumber, string idWaBusiness, string token)
{
ClientId = clientId;
ClientSecret = clientSecret;
IdPhoneNumber = idPhoneNumber;
IdWaBusiness = idWaBusiness;
Token = token;
}
public string ClientId { get; }
public string ClientSecret { get; }
public string IdPhoneNumber { get; }
public string IdWaBusiness { get; }
public string Token
{
get => token;
set
{
token = value;
_isChangeToken = !string.IsNullOrEmpty(token) && token != value;
}
}
public bool IsChangeToken { get => _isChangeToken; }
}
}