Skip to content

Commit

Permalink
update ClientConfig and DeviceType
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiboZhang1 committed Aug 4, 2021
1 parent 294b830 commit 31be7f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/main/java/cn/jiguang/common/ClientConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ public class ClientConfig extends HashMap<String, Object> {
public static final String REPORT_STATUS_PATH = "report.status.path";
public static final Object REPORT_STATUS_PATH_SCHEMA = String.class;

public static final String REPORT_GROUP_MESSAGE_DETAIL_PATH = "report.group.message.detail.path";
public static final Object REPORT_GROUP_MESSAGE_DETAIL_PATH_SCHEMA = String.class;

public static final String REPORT_GROUP_USER_PATH = "report.group.user.path";
public static final Object REPORT_GROUP_USER_PATH_SCHEMA = String.class;

public static final String SCHEDULE_HOST_NAME = "schedule.host.name";
public static final Object SCHEDULE_HOST_NAME_SCHEMA = String.class;

Expand Down Expand Up @@ -150,6 +156,9 @@ private ClientConfig() {
this.put(REPORT_USER_PATH, "/v3/users");
this.put(REPORT_MESSAGE_PATH, "/v3/messages");
this.put(REPORT_STATUS_PATH, "/v3/status");
this.put(REPORT_GROUP_MESSAGE_DETAIL_PATH, "/v3/group/messages/detail");
this.put(REPORT_GROUP_USER_PATH, "/v3/group/users");


this.put(SCHEDULE_HOST_NAME, "https://api.jpush.cn");
this.put(SCHEDULE_PATH, "/v3/schedules");
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/cn/jiguang/common/DeviceType.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ public enum DeviceType {

Android("android"),
IOS("ios"),
WinPhone("winphone");
WinPhone("winphone"),
QuickApp("quickapp");

private final String value;

Expand Down

0 comments on commit 31be7f5

Please sign in to comment.