Skip to content

Commit 572a421

Browse files
author
Javen
committed
Fix: overrideMsgId shoud be long type.
1 parent feaf6f2 commit 572a421

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cn/jpush/api/push/model/Options.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ public class Options implements PushModel {
1414
private static final String APNS_PRODUCTION = "apns_production";
1515

1616
private final int sendno;
17-
private final int overrideMsgId;
17+
private final long overrideMsgId;
1818
private long timeToLive;
1919
private boolean apnsProduction;
2020

21-
private Options(int sendno, int overrideMsgId, long timeToLive, boolean apnsProduction) {
21+
private Options(int sendno, long overrideMsgId, long timeToLive, boolean apnsProduction) {
2222
this.sendno = sendno;
2323
this.overrideMsgId = overrideMsgId;
2424
this.timeToLive = timeToLive;
@@ -69,7 +69,7 @@ public JsonElement toJSON() {
6969

7070
public static class Builder {
7171
private int sendno = 0;
72-
private int overrideMsgId = 0;
72+
private long overrideMsgId = 0;
7373
private long timeToLive = 0;
7474
private boolean apnsProduction = true;
7575

@@ -78,7 +78,7 @@ public Builder setSendno(int sendno) {
7878
return this;
7979
}
8080

81-
public Builder setOverrideMsgId(int overrideMsgId) {
81+
public Builder setOverrideMsgId(long overrideMsgId) {
8282
this.overrideMsgId = overrideMsgId;
8383
return this;
8484
}

0 commit comments

Comments
 (0)