From 31be7f521ca6008fa211edd4f2729541758f0ff9 Mon Sep 17 00:00:00 2001 From: Ruibo Zhang Date: Wed, 4 Aug 2021 15:16:55 +0800 Subject: [PATCH] update ClientConfig and DeviceType --- src/main/java/cn/jiguang/common/ClientConfig.java | 9 +++++++++ src/main/java/cn/jiguang/common/DeviceType.java | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/java/cn/jiguang/common/ClientConfig.java b/src/main/java/cn/jiguang/common/ClientConfig.java index afe9bb4..ab8f89d 100644 --- a/src/main/java/cn/jiguang/common/ClientConfig.java +++ b/src/main/java/cn/jiguang/common/ClientConfig.java @@ -55,6 +55,12 @@ public class ClientConfig extends HashMap { 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; @@ -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"); diff --git a/src/main/java/cn/jiguang/common/DeviceType.java b/src/main/java/cn/jiguang/common/DeviceType.java index 5f54493..3d21564 100644 --- a/src/main/java/cn/jiguang/common/DeviceType.java +++ b/src/main/java/cn/jiguang/common/DeviceType.java @@ -4,7 +4,8 @@ public enum DeviceType { Android("android"), IOS("ios"), - WinPhone("winphone"); + WinPhone("winphone"), + QuickApp("quickapp"); private final String value;