QRRecognitionResult.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System.Xml.Serialization;
  2. using System.Collections.Generic;
  3. namespace COSXML.Model.Tag
  4. {
  5. /// <summary>
  6. /// 图片审核结果
  7. /// </summary>
  8. [XmlRoot("Response")]
  9. public sealed class QRRecognitionResult
  10. {
  11. /// <summary>
  12. /// 二维码识别结果
  13. /// </summary>
  14. [XmlElement]
  15. public int CodeStatus;
  16. /// <summary>
  17. /// 二维码识别结果
  18. /// </summary>
  19. [XmlElement]
  20. public QRcodeRecognitionInfo QRcodeInfo;
  21. /// <summary>
  22. /// 处理后的图片 base64数据,请求参数 cover 为1时返回
  23. /// </summary>
  24. [XmlElement]
  25. public string ResultImage;
  26. /// <summary>
  27. /// 二维码识别结果
  28. /// </summary>
  29. public sealed class QRcodeRecognitionInfo
  30. {
  31. /// <summary>
  32. /// 二维码的内容
  33. /// </summary>
  34. [XmlElement]
  35. public string CodeUrl;
  36. /// <summary>
  37. /// 图中识别到的二维码位置坐标
  38. /// </summary>
  39. [XmlElement]
  40. public CodeLocationInfo CodeLocation;
  41. }
  42. /// <summary>
  43. /// 二维码位置坐标
  44. /// </summary>
  45. public sealed class CodeLocationInfo
  46. {
  47. /// <summary>
  48. /// 二维码的内容
  49. /// </summary>
  50. [XmlElement]
  51. public List<string> Point;
  52. }
  53. }
  54. }