Skip to content

Commit 5b282c3

Browse files
author
Javen
committed
Add setDefaults for PushClient
1 parent 0d418d7 commit 5b282c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cn/jpush/api/push/PushClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ public PushClient(String masterSecret, String appKey, boolean apnsProduction, lo
8888
this._globalSettingEnabled = true;
8989
}
9090

91+
public void setDefaults(boolean apnsProduction, long timeToLive) {
92+
this._apnsProduction = apnsProduction;
93+
this._timeToLive = timeToLive;
94+
this._globalSettingEnabled = true;
95+
}
96+
9197
public void setBaseUrl(String baseUrl) {
9298
this._baseUrl = baseUrl;
9399
}

0 commit comments

Comments
 (0)