ResultBase.cs 903 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* ==============================================================================
  2. * 功能描述:
  3. * 创 建 者:Garrett
  4. * 创建日期:2019/5/31 16:24:04
  5. * ==============================================================================*/
  6. using Newtonsoft.Json;
  7. using Newtonsoft.Json.Converters;
  8. namespace ServiceRevitLib.Mode
  9. {
  10. /// <summary>
  11. /// CheckResultBase
  12. /// </summary>
  13. public class ResultBase
  14. {
  15. public ResultBase()
  16. {
  17. Result = ResultState.Success;
  18. }
  19. /// <summary>
  20. /// 成功或失败结果描述
  21. /// </summary>
  22. [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
  23. public string ResultMsg { get; set; }
  24. /// <summary>
  25. /// 结果
  26. /// </summary>
  27. [JsonConverter(typeof(StringEnumConverter))]
  28. public ResultState Result { get; set; }
  29. }
  30. }