IResultParser.cs 578 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SKMC.Api.Common.Vision
  7. {
  8. /// <summary>
  9. /// 结果字符串解析接口
  10. /// </summary>
  11. public interface IResultParser<T>
  12. {
  13. /// <summary>
  14. /// 将结果字符串解析并注入到目标对象中
  15. /// </summary>
  16. /// <param name="t">目标对象</param>
  17. /// <param name="resultMsg">结果字符串</param>
  18. /// <returns></returns>
  19. void Parse(ref T t, string resultMsg);
  20. }
  21. }