HttpResult.cs 777 B

1234567891011121314151617181920212223242526272829
  1. /* ==============================================================================
  2. * 功能描述:HttpResult
  3. * 创 建 者:Garrett
  4. * 创建日期:2019/9/18 10:21:11
  5. * ==============================================================================*/
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using Newtonsoft.Json;
  12. namespace MBIRevitBase.Result
  13. {
  14. /// <summary>
  15. /// HttpResult
  16. /// </summary>
  17. public class HttpResult
  18. {
  19. public string Message { get; set; }
  20. public string Result { get; set; }
  21. public static implicit operator HttpResult(string result)
  22. {
  23. return JsonConvert.DeserializeObject<HttpResult>(result);
  24. }
  25. }
  26. }