-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathAdmConfiguration.cs
More file actions
33 lines (27 loc) · 920 Bytes
/
AdmConfiguration.cs
File metadata and controls
33 lines (27 loc) · 920 Bytes
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
namespace PushSharp.Amazon
{
public class AdmConfiguration
{
const string ADM_SEND_URL = "https://api.amazon.com/messaging/registrations/{0}/messages";
const string ADM_AUTH_URL = "https://api.amazon.com/auth/O2/token";
public AdmConfiguration (string clientId, string clientSecret)
{
ClientId = clientId;
ClientSecret = clientSecret;
AdmSendUrl = ADM_SEND_URL;
AdmAuthUrl = ADM_AUTH_URL;
}
public string ClientId { get; private set; }
public string ClientSecret { get; private set; }
public string AdmSendUrl { get; private set; }
public string AdmAuthUrl { get; private set; }
public void OverrideSendUrl(string url)
{
AdmSendUrl = url;
}
public void OverrideAuthUrl(string url)
{
AdmAuthUrl = url;
}
}
}