123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- using System.Collections.Generic;
- using System.Xml.Serialization;
- namespace COSXML.Model.Tag
- {
- /// <summary>
- /// 图片处理结果
- /// </summary>
- [XmlRoot("UploadResult")]
- public sealed class PicOperationUploadResult
- {
- /// <summary>
- /// 原图信息
- /// </summary>
- [XmlElement("OriginalInfo")]
- public OriginalInfo originalInfo;
- /// <summary>
- /// 图片处理结果
- /// </summary>
- [XmlElement("ProcessResults")]
- public ProcessResults processResults;
- /// <summary>
- /// 原图信息
- /// </summary>
- public sealed class OriginalInfo
- {
- /// <summary>
- /// 对象健
- /// </summary>
- [XmlElement]
- public string Key;
- /// <summary>
- /// 图片路径
- /// </summary>
- [XmlElement]
- public string Location;
- /// <summary>
- /// 图片 Etag
- /// </summary>
- [XmlElement]
- public string ETag;
- /// <summary>
- /// 原图图片信息
- /// </summary>
- [XmlElement("ImageInfo")]
- public ImageInfo imageInfo;
- }
- /// <summary>
- /// 原图图片信息
- /// </summary>
- public sealed class ImageInfo
- {
- /// <summary>
- /// 格式
- /// </summary>
- [XmlElement]
- public string Format;
- /// <summary>
- /// 宽度
- /// </summary>
- [XmlElement]
- public int Width;
- /// <summary>
- /// 高度
- /// </summary>
- [XmlElement]
- public int Height;
- /// <summary>
- /// 图片质量
- /// </summary>
- [XmlElement]
- public int Quality;
- /// <summary>
- /// 图片主色调
- /// </summary>
- [XmlElement]
- public string Ave;
- /// <summary>
- /// 图片旋转角度
- /// </summary>
- [XmlElement]
- public int Orientation;
- }
- /// <summary>
- /// 图片处理结果
- /// </summary>
- public sealed class ProcessResults
- {
- /// <summary>
- /// 图片处理结果
- /// </summary>
- [XmlElement("Object")]
- public List<ProcessResult> results;
- public ProcessResults()
- {
- results = new List<ProcessResult>();
- }
- }
- /// <summary>
- /// 单个图片处理结果
- /// </summary>
- public sealed class ProcessResult
- {
- /// <summary>
- /// 文件对象键
- /// </summary>
- [XmlElement]
- public string Key;
- /// <summary>
- /// 图片路径
- /// </summary>
- [XmlElement]
- public string Location;
- /// <summary>
- /// 图片格式
- /// </summary>
- [XmlElement]
- public string Format;
- /// <summary>
- /// 图片宽度
- /// </summary>
- [XmlElement]
- public int Width;
- /// <summary>
- /// 图片高度
- /// </summary>
- [XmlElement]
- public int Height;
- /// <summary>
- /// 图片大小
- /// </summary>
- [XmlElement]
- public int Size;
- /// <summary>
- /// 图片质量
- /// </summary>
- [XmlElement]
- public int Quality;
- /// <summary>
- /// 图片 Etag
- /// </summary>
- [XmlElement]
- public string ETag;
- /// <summary>
- /// 盲水印时表示提取到全盲水印的可信度
- /// </summary>
- [XmlElement]
- public int WatermarkStatus;
- /// <summary>
- /// 二维码时表示二维码识别结果
- /// </summary>
- [XmlElement]
- public int CodeStatus;
- /// <summary>
- /// 二维码表示二维码识别结果
- /// </summary>
- [XmlElement]
- public QRcodeInfo QRcodeInfo;
- }
- /// <summary>
- /// 二维码识别结果
- /// </summary>
- public sealed class QRcodeInfo
- {
- /// <summary>
- /// 文件对象键
- /// </summary>
- [XmlElement]
- public string CodeUrl;
- /// <summary>
- /// 图片路径
- /// </summary>
- [XmlElement]
- public CodeLocation CodeLocation;
- }
- /// <summary>
- /// 二维码识别结果
- /// </summary>
- public sealed class CodeLocation
- {
- /// <summary>
- /// 文件对象键
- /// </summary>
- [XmlElement]
- public List<string> Point;
- }
- }
- }
|