Replacement for JDIS Importer
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

RESTResponse.cs 783 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using Newtonsoft.Json;
  2. namespace jdis_import.RESTObjects
  3. {
  4. [JsonObject(MemberSerialization.OptIn)]
  5. public class RESTResponse<T>
  6. {
  7. #region Fields
  8. private RESTMeta _meta = null;
  9. private T _data;
  10. #endregion
  11. #region Properties
  12. [JsonProperty(PropertyName = "meta")]
  13. public RESTMeta meta
  14. {
  15. get
  16. {
  17. if (_meta == null)
  18. {
  19. _meta = new RESTMeta();
  20. }
  21. return _meta;
  22. }
  23. set { _meta = value; }
  24. }
  25. [JsonProperty(PropertyName = "data")]
  26. public T data
  27. {
  28. get { return _data; }
  29. set { _data = value; }
  30. }
  31. #endregion
  32. }
  33. }