Replacement for JDIS Importer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 line
783 B

  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. }