admin
2021-07-06 abce02c7a61820f5d580f87364d542e817be429c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.yeshi.push;
 
import com.yeshi.push.entity.PushAppInfo;
 
public class PushAppInfoFactory {
 
    public static PushAppInfo createXM(String appId, String appKey) {
        return new PushAppInfo(appId, appKey, null);
    }
 
    public static PushAppInfo createOPPO(String appKey, String appSecret) {
        return new PushAppInfo(null, appKey, appSecret);
    }
 
    public static PushAppInfo createVIVO(String appId, String appKey) {
        return new PushAppInfo(appId, appKey, null);
    }
 
    public static PushAppInfo createHuaWei(String appId) {
        return new PushAppInfo(appId, null, null);
    }
 
    public static PushAppInfo createMeizu(String appId, String appKey) {
        return new PushAppInfo(appId, appKey, null);
    }
 
 
}