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