public void registerGcmId(String gcmRegistrationId) { GcmRegistrationId registration = new GcmRegistrationId(gcmRegistrationId, true); makeRequest(REGISTER_GCM_PATH, "PUT", JsonUtil.toJson(registration)); }
public async Task RegisterGcmId(CancellationToken token, String gcmRegistrationId) { GcmRegistrationId registration = new GcmRegistrationId(gcmRegistrationId, true); await MakeServiceRequestAsync(token, REGISTER_GCM_PATH, "PUT", JsonUtil.ToJson(registration)); }