ErrorResponse.cs 619 B

12345678910111213141516171819202122232425
  1. using LC.Newtonsoft.Json;
  2. namespace TapTap.AntiAddiction.Model
  3. {
  4. internal class ErrorResult
  5. {
  6. [JsonProperty("code")]
  7. internal int Code { get; private set; }
  8. [JsonProperty("error")]
  9. internal string Error { get; private set; }
  10. [JsonProperty("error_description")]
  11. internal string Description { get; private set; }
  12. [JsonProperty("msg")]
  13. internal string Message { get; private set; }
  14. }
  15. internal class ErrorResponse : BaseResponse
  16. {
  17. [JsonProperty("data")]
  18. internal ErrorResult Result { get; private set; }
  19. }
  20. }