using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api; namespace DingTalk.Api.Response { /// /// OapiPbpInstancePositionListResponse. /// public class OapiPbpInstancePositionListResponse : DingTalkResponse { /// /// 系统自动生成 /// [XmlElement("errcode")] public long Errcode { get; set; } /// /// 错误信息 /// [XmlElement("errmsg")] public string Errmsg { get; set; } /// /// 分页结果 /// [XmlElement("result")] public PageResultDomain Result { get; set; } /// /// PositionVoDomain Data Structure. /// [Serializable] public class PositionVoDomain : TopObject { /// /// 位置唯一标识,根据type不同类型不同,如硬件类型代表硬件设备唯一标识 /// [XmlElement("position_id")] public string PositionId { get; set; } /// /// 位置名称 /// [XmlElement("position_name")] public string PositionName { get; set; } /// /// 位置类型,如100代表硬件B1设备 /// [XmlElement("type")] public long Type { get; set; } } /// /// PageResultDomain Data Structure. /// [Serializable] public class PageResultDomain : TopObject { /// /// 是否还有数据 /// [XmlElement("has_more")] public bool HasMore { get; set; } /// /// 位置列表 /// [XmlArray("list")] [XmlArrayItem("position_vo")] public List List { get; set; } /// /// 下次请求需要带的游标 /// [XmlElement("next_cursor")] public long NextCursor { get; set; } } } }