AndroidUnicast.java 435 B

1234567891011121314
  1. package com.fdkankan.push.android;
  2. public class AndroidUnicast extends AndroidNotification {
  3. public AndroidUnicast(String appkey,String appMasterSecret) throws Exception {
  4. setAppMasterSecret(appMasterSecret);
  5. setPredefinedKeyValue("appkey", appkey);
  6. this.setPredefinedKeyValue("type", "unicast");
  7. }
  8. public void setDeviceToken(String token) throws Exception {
  9. setPredefinedKeyValue("device_tokens", token);
  10. }
  11. }