#region Apache License Version 2.0
/*----------------------------------------------------------------
Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language governing permissions
and limitations under the License.
Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
----------------------------------------------------------------*/
#endregion Apache License Version 2.0
/*----------------------------------------------------------------
Copyright (C) 2019 Senparc
文件名:DeviceManageResultJson.cs
文件功能描述:设备管理返回结果
创建标识:Senparc - 20150512
----------------------------------------------------------------*/
using System.Collections.Generic;
using Senparc.Weixin.Entities;
namespace Senparc.Weixin.MP.AdvancedAPIs.ShakeAround
{
///
/// 申请设备ID返回结果
///
public class DeviceApplyResultJson : WxJsonResult
{
///
/// 申请设备ID返回数据
///
public DeviceApply_Data data { get; set; }
}
public class DeviceApply_Data
{
///
/// 申请的批次ID,可用在“查询设备列表”接口按批次查询本次申请成功的设备ID。
///
public long apply_id { get; set; }
/////
///// 指定的设备ID列表
/////
//public List device_identifiers { get; set; }
///
/// 审核状态。0:审核未通过、1:审核中、2:审核已通过;审核会在三个工作日内完成
///
public int audit_status { get; set; }
///
/// 审核备注,包括审核不通过的原因
///
public string audit_comment { get; set; }
}
///
/// 设备参数
///
public class DeviceApply_Data_Device_Identifiers
{
///
/// 设备编号
///
public long? device_id { get; set; }
public string uuid { get; set; }
public long major { get; set; }
public long minor { get; set; }
}
#region 返回结果示例
//当申请个数小于等于500时,
//{
//"data": {
// "apply_id": 123,
// "device_identifiers":[
// {
// "device_id":10100,
// "uuid":"FDA50693-A4E2-4FB1-AFCF-C6EB07647825",
// "major":10001,
// "minor":10002
// }
// ]
// },
// "errcode": 0,
// "errmsg": "success."
//}
//当申请个数大于500时,
//{
//"data": {
// "apply_id": 123,
// "audit_status": 0,
// "audit_comment": "审核未通过"
// },
// "errcode": 0,
// "errmsg": "success."
//}
#endregion
///
/// 查询设备列表返回结果
///
public class DeviceSearchResultJson : WxJsonResult
{
///
/// 申请设备ID返回数据
///
public DeviceSearch_Data data { get; set; }
}
public class DeviceSearch_Data
{
///
/// 指定的设备信息列表
///
public List devices { get; set; }
///
/// 商户名下的设备总量
///
public int total_count { get; set; }
}
public class DeviceSearch_Data_Devices
{
///
/// 设备的备注信息
///
public string comment { get; set; }
///
/// 设备编号
///
public long device_id { get; set; }
public long major { get; set; }
public long minor { get; set; }
///
/// 与此设备关联的页面ID列表,用逗号隔开
///
public string page_ids { get; set; }
///
/// 激活状态,0:未激活,1:已激活(但不活跃),2:活跃
///
public int status { get; set; }
///
/// 设备关联的门店ID
///
public long poi_id { get; set; }
public string uuid { get; set; }
}
}