public async void SendPushNotification(string message, mPushType type) { topic = BuildTopic(); string url = BuildRequestParams(topic, message, type); await HttpGet(url); }
private string BuildRequestParams(string topic, string message, mPushType type) { string url = null; try { builder = new UriBuilder(endpoint); query = HttpUtility.ParseQueryString(builder.Query); query["topic"] = topic; query["message"] = message; query["type"] = type.ToString(); builder.Query = query.ToString(); url = builder.ToString(); return(url); } catch (Exception ex) { throw ex; } }