huyao
2022-09-29 50e0d4741b19a5071741b200ff76a4d69504fce3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.dsh.utils.push.android;
 
 
import com.dsh.utils.push.AndroidNotification;
 
public class AndroidUnicast extends AndroidNotification {
 
    public AndroidUnicast(String appkey, String appMasterSecret) throws Exception {
        setAppMasterSecret(appMasterSecret);
        setPredefinedKeyValue("appkey", appkey);
        this.setPredefinedKeyValue("type", "unicast");
    }
 
    public void setDeviceToken(String token) throws Exception {
        setPredefinedKeyValue("device_tokens", token);
 
    }
 
}