public class ShakeProxy extends MPlatformProxy
Description:
tokenManagerweixinRequestClient| 构造器和说明 |
|---|
ShakeProxy(TokenManager tokenManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
DeviceAuditState |
deviceApply(Integer quantity,
String applyReason,
String comment)
申请配置设备所需的UUID、Major、Minor。
|
DeviceAuditState |
deviceQueryApplyStatus(int applyId)
查询设备ID申请的审核状态。
|
PageData<Device> |
deviceSearchDevices(int pageSize)
查询已有的设备ID、UUID、Major、Minor、激活状态、备注信息、关联门店、关联页面等信息。
|
PageData<Device> |
deviceSearchDevices(int lastDeviceId,
int pageSize)
查询已有的设备ID、UUID、Major、Minor、激活状态、备注信息、关联门店、关联页面等信息
根据上次查询的最后的设备编号按照分页查询
|
List<Device> |
deviceSearchDevices(List<Device> device)
查询已有的设备ID、UUID、Major、Minor、激活状态、备注信息、关联门店、关联页面等信息。
|
List<Device> |
deviceSearchDevicesByApplyId(Integer applyId)
查询已有的设备ID、UUID、Major、Minor、激活状态、备注信息、关联门店、关联页面等信息
查询 设备Id 下的所有的设备
|
PageData<Device> |
deviceSearchDevicesByApplyId(Integer applyId,
int pageSize)
查询已有的设备ID、UUID、Major、Minor、激活状态、备注信息、关联门店、关联页面等信息
分页获取设备id下的前多少设备
|
PageData<Device> |
deviceSearchDevicesByApplyId(Integer applyId,
int lastDeviceId,
int pageSize)
查询已有的设备ID、UUID、Major、Minor、激活状态、备注信息、关联门店、关联页面等信息
分页获取设备id下的根据上次查询的最后的设备编号前多少设备
|
ApiResult |
deviceUpdateComment(Device device,
String comment)
编辑设备的备注信息。
|
ShakeUserInfo |
getShakeUserInfo(String ticket)
获取设备信息,包括UUID、major、minor,以及距离、openID等信息.
|
getTokenManagerpublic ShakeProxy(TokenManager tokenManager)
public DeviceAuditState deviceApply(Integer quantity, String applyReason, String comment) throws WeixinException
quantity - the quantity 申请的设备ID的数量,单次新增设备超过500个,需走人工审核流程applyReason - the apply reason 申请理由,不超过100个汉字或200个英文字母comment - the comment 备注,不超过15个汉字或30个英文字母WeixinException - the weixin exceptionpublic DeviceAuditState deviceQueryApplyStatus(int applyId) throws WeixinException
applyId - the apply id 批次ID,申请设备ID时所返回的批次IDWeixinException - the weixin exceptionpublic List<Device> deviceSearchDevices(List<Device> device) throws WeixinException
device - the deviceWeixinException - the weixin exceptionpublic PageData<Device> deviceSearchDevices(int pageSize) throws WeixinException
WeixinException - the weixin exceptionpublic PageData<Device> deviceSearchDevices(int lastDeviceId, int pageSize) throws WeixinException
lastDeviceId - the last device idpageSize - the page sizeWeixinException - the weixin exceptionpublic List<Device> deviceSearchDevicesByApplyId(Integer applyId) throws WeixinException
applyId - the apply idWeixinExceptionpublic PageData<Device> deviceSearchDevicesByApplyId(Integer applyId, int pageSize) throws WeixinException
applyId - the apply idWeixinExceptionpublic PageData<Device> deviceSearchDevicesByApplyId(Integer applyId, int lastDeviceId, int pageSize) throws WeixinException
applyId - the apply idWeixinExceptionpublic ApiResult deviceUpdateComment(Device device, String comment) throws WeixinException
device - the devicecomment - the commentWeixinExceptionpublic ShakeUserInfo getShakeUserInfo(String ticket) throws WeixinException
ticket - the ticket 摇周边业务的ticket,可在摇到的URL中得到,ticket生效时间为30分钟,每一次摇都会重新生成新的ticketWeixinExceptionCopyright © 2020. All rights reserved.