Package cn.jpush.api.report
Class ReportClient
- java.lang.Object
-
- cn.jpush.api.report.ReportClient
-
public class ReportClient extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ReportClient(java.lang.String masterSecret, java.lang.String appKey)ReportClient(java.lang.String masterSecret, java.lang.String appKey, int maxRetryTimes)Deprecated.ReportClient(java.lang.String masterSecret, java.lang.String appKey, int maxRetryTimes, cn.jiguang.common.connection.HttpProxy proxy)Deprecated.ReportClient(java.lang.String masterSecret, java.lang.String appKey, cn.jiguang.common.connection.HttpProxy proxy, cn.jiguang.common.ClientConfig conf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcheckMsgids(java.lang.String msgIds)MessagesResultgetMessages(java.lang.String msgIds)java.util.Map<java.lang.String,MessageStatus>getMessagesStatus(CheckMessagePayload payload)ReceivedsResultgetReceiveds(java.lang.String msgIds)ReceivedsResultgetReceiveds(java.lang.String[] msgIdArray)UsersResultgetUsers(cn.jiguang.common.TimeUnit timeUnit, java.lang.String start, int duration)
-
-
-
Constructor Detail
-
ReportClient
public ReportClient(java.lang.String masterSecret, java.lang.String appKey)
-
ReportClient
@Deprecated public ReportClient(java.lang.String masterSecret, java.lang.String appKey, int maxRetryTimes)Deprecated.This will be removed in the future. Please use ClientConfig{jiguang-common cn.jiguang.common.ClientConfig#setMaxRetryTimes} instead of this constructor.- Parameters:
masterSecret- API access secret of the appKey.appKey- The KEY of one application on JPush.maxRetryTimes- max retry times.
-
ReportClient
@Deprecated public ReportClient(java.lang.String masterSecret, java.lang.String appKey, int maxRetryTimes, cn.jiguang.common.connection.HttpProxy proxy)Deprecated.This will be removed in the future. Please use ClientConfig{jiguang-common cn.jiguang.common.ClientConfig#setMaxRetryTimes} instead of this constructor.- Parameters:
masterSecret- API access secret of the appKey.appKey- The KEY of one application on JPush.maxRetryTimes- max retry timesproxy- The max retry times.
-
ReportClient
public ReportClient(java.lang.String masterSecret, java.lang.String appKey, cn.jiguang.common.connection.HttpProxy proxy, cn.jiguang.common.ClientConfig conf)
-
-
Method Detail
-
getReceiveds
public ReceivedsResult getReceiveds(java.lang.String[] msgIdArray) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
- Throws:
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestException
-
getReceiveds
public ReceivedsResult getReceiveds(java.lang.String msgIds) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
- Throws:
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestException
-
getMessages
public MessagesResult getMessages(java.lang.String msgIds) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
- Throws:
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestException
-
getMessagesStatus
public java.util.Map<java.lang.String,MessageStatus> getMessagesStatus(CheckMessagePayload payload) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
- Throws:
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestException
-
getUsers
public UsersResult getUsers(cn.jiguang.common.TimeUnit timeUnit, java.lang.String start, int duration) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
- Throws:
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestException
-
checkMsgids
public static void checkMsgids(java.lang.String msgIds)
-
-