-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06b44f9
commit c2d0245
Showing
14 changed files
with
196 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ replay_pid* | |
*.iml | ||
|
||
.idea | ||
target/ | ||
**/target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
jiguang-sdk/src/main/java/cn/jiguang/sdk/bean/push/batch/BatchPushParam.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package cn.jiguang.sdk.bean.push.batch; | ||
|
||
import cn.jiguang.sdk.bean.push.callback.Callback; | ||
import cn.jiguang.sdk.bean.push.message.custom.CustomMessage; | ||
import cn.jiguang.sdk.bean.push.message.notification.NotificationMessage; | ||
import cn.jiguang.sdk.bean.push.message.sms.SmsMessage; | ||
import cn.jiguang.sdk.bean.push.options.Options; | ||
import cn.jiguang.sdk.enums.platform.Platform; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class BatchPushParam { | ||
|
||
/** | ||
* 此处填写的是 regId 值或者 alias 值 | ||
*/ | ||
@JsonProperty("target") | ||
private String target; | ||
|
||
/** | ||
* 两种格式 | ||
* 字符串:"all" | ||
* {@link Platform}数组:["android","ios","hmos","quickapp"] | ||
*/ | ||
@JsonProperty("platform") | ||
private Object platform; | ||
|
||
@JsonProperty("options") | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
private Options options; | ||
|
||
@JsonProperty("notification") | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
private NotificationMessage notification; | ||
|
||
@JsonProperty("message") | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
private CustomMessage custom; | ||
|
||
@JsonProperty("sms_message") | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
private SmsMessage smsMessage; | ||
|
||
@JsonProperty("callback") | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
private Callback callback; | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
jiguang-sdk/src/main/java/cn/jiguang/sdk/bean/push/batch/BatchPushResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package cn.jiguang.sdk.bean.push.batch; | ||
|
||
import cn.jiguang.sdk.exception.ApiErrorException; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Data; | ||
|
||
@Data | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class BatchPushResult { | ||
|
||
@JsonProperty("msg_id") | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
private String messageId; | ||
|
||
@JsonProperty("error") | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
private ApiErrorException.ApiError.Error error; | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
jiguang-sdk/src/main/java/cn/jiguang/sdk/bean/push/batch/BatchPushSendParam.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package cn.jiguang.sdk.bean.push.batch; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Data; | ||
|
||
import java.util.Map; | ||
|
||
@Data | ||
public class BatchPushSendParam { | ||
|
||
@JsonProperty("pushlist") | ||
private Map<String, BatchPushParam> sendParam; | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
jiguang-sdk/src/main/java/cn/jiguang/sdk/bean/push/batch/BatchPushSendResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package cn.jiguang.sdk.bean.push.batch; | ||
|
||
import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import lombok.Data; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
@Data | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class BatchPushSendResult { | ||
|
||
private Map<String, BatchPushResult> sendResult = new HashMap<>(); | ||
|
||
@JsonAnySetter | ||
public void addResult(String key, BatchPushResult value) { | ||
sendResult.put(key, value); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters