-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathGcmConfiguration.cs
More file actions
46 lines (33 loc) · 1.24 KB
/
GcmConfiguration.cs
File metadata and controls
46 lines (33 loc) · 1.24 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
using System;
using System.Net;
namespace PushSharp.Google
{
public class GcmConfiguration
{
private const string GCM_SEND_URL = "https://gcm-http.googleapis.com/gcm/send";
public GcmConfiguration (string senderAuthToken)
{
this.SenderAuthToken = senderAuthToken;
this.GcmUrl = GCM_SEND_URL;
this.ValidateServerCertificate = false;
}
public GcmConfiguration (string optionalSenderID, string senderAuthToken, string optionalApplicationIdPackageName)
{
this.SenderID = optionalSenderID;
this.SenderAuthToken = senderAuthToken;
this.ApplicationIdPackageName = optionalApplicationIdPackageName;
this.GcmUrl = GCM_SEND_URL;
this.ValidateServerCertificate = false;
}
public string SenderID { get; private set; }
public string SenderAuthToken { get; private set; }
public string ApplicationIdPackageName { get; private set; }
public bool ValidateServerCertificate { get; set; }
public string GcmUrl { get; set; }
public void OverrideUrl (string url)
{
GcmUrl = url;
}
public WebProxy Proxy { get; set; }
}
}