示例#1
0
        public void AmazonAdm_Simple_Test()
        {
            var wait = new ManualResetEvent(false);

            var settings = new AdmPushChannelSettings ("client_id", "client_secret");

            var adm = new AdmPushChannel (settings);

            var n = new AdmNotification ();
            n.Data.Add ("Test", "value");
            n.RegistrationId = "12345";

            adm.SendNotification (n, (sender, response) => wait.Set());

            wait.WaitOne ();
        }
示例#2
0
		public AdmMessageTooLargeException(AdmNotification notification, string msg) : base(msg) 
		{
			Notification = notification;
		}
示例#3
0
		public AdmSendException(AdmNotification notification, string msg) : base(msg) 
		{
			Notification = notification;
		}
示例#4
0
		public AdmRateLimitExceededException(AdmNotification notification, string msg) : base(msg) 
		{
			Notification = notification;
		}
示例#5
0
 public AdmMessageTooLargeException(AdmNotification notification, string msg) : base(msg)
 {
     Notification = notification;
 }
示例#6
0
 public AdmSendException(AdmNotification notification, string msg) : base(msg)
 {
     Notification = notification;
 }
示例#7
0
 public AdmRateLimitExceededException(AdmNotification notification, string msg) : base(msg)
 {
     Notification = notification;
 }