Skip to content

Commit

Permalink
Merge pull request #48 from Liuchy1/master
Browse files Browse the repository at this point in the history
fix jpush client
  • Loading branch information
Liuchy1 committed Dec 16, 2015
2 parents ad352bc + 2f572f0 commit 9884cfc
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/main/java/cn/jpush/api/JPushClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,30 +144,6 @@ public JPushClient(String masterSecret, String appKey, int maxRetryTimes, HttpPr
_scheduleClient = new ScheduleClient(masterSecret, appKey, proxy, conf);
_pushClient.setDefaults(apnsProduction, timeToLive);

}

/**
* Create a JPush Client by custom Client configuration with global settings.
*
* If you are using JPush privacy cloud, and you want different settings from default globally,
* maybe this constructor is what you needed.
* This will be removed in the future. Please use ClientConfig{@link cn.jpush.api.common.ClientConfig#setGlobalPushSetting} instead of this constructor.
*
* @param masterSecret API access secret of the appKey.
* @param appKey The KEY of one application on JPush.
* @param proxy The proxy, if there is no proxy, should be null.
* @param conf The client configuration. Can use ClientConfig.getInstance() as default.
* @param apnsProduction Global APNs environment setting. It will override PushPayload Options.
* @param timeToLive Global time_to_live setting. It will override PushPayload Options.
*/
@Deprecated
public JPushClient(String masterSecret, String appKey, HttpProxy proxy, ClientConfig conf,
boolean apnsProduction, long timeToLive) {
_pushClient = new PushClient(masterSecret, appKey, proxy, conf);
_reportClient = new ReportClient(masterSecret, appKey, proxy, conf);
_deviceClient = new DeviceClient(masterSecret, appKey, proxy, conf);
_scheduleClient = new ScheduleClient(masterSecret, appKey, proxy, conf);
_pushClient.setDefaults(apnsProduction, timeToLive);
}

/**
Expand Down

0 comments on commit 9884cfc

Please sign in to comment.