/// <summary> /// Send message to GCM server asynchronously /// </summary> /// <param name="message"></param> /// <returns></returns> public async Task<string> SendAsync(IGCM message) { string data = message.ToJson(); return await sendAsync(message); }
protected void OnError(IGCM message, Exception ex) { if (onError != null) { onError(_Key, new PushServerErrorEventArgs() { SendingData = message, Exception = ex }); } }
/// <summary> /// Send message to GCM server /// </summary> /// <param name="message">represents message</param> /// <returns></returns> public string Send(IGCM message) { return send(message); }
protected void OnSuccess(IGCM message, string response) { if (onSuccess != null) { onSuccess(_Key, new PushServerEventArgs() { SendingData = message, Response = response}); } }