OCFileDto.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // OCFileDto.h
  3. // Owncloud iOs Client
  4. //
  5. // Copyright (C) 2016, ownCloud GmbH. ( http://www.owncloud.org/ )
  6. //
  7. // Permission is hereby granted, free of charge, to any person obtaining a copy
  8. // of this software and associated documentation files (the "Software"), to deal
  9. // in the Software without restriction, including without limitation the rights
  10. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. // copies of the Software, and to permit persons to whom the Software is
  12. // furnished to do so, subject to the following conditions:
  13. // The above copyright notice and this permission notice shall be included in
  14. // all copies or substantial portions of the Software.
  15. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  21. // THE SOFTWARE.
  22. //
  23. //
  24. //
  25. // Add Support for Quota
  26. // quotaUsed and quotaAvailable
  27. //
  28. // Add Support for Favorite
  29. // isFavorite
  30. //
  31. // Author Marino Faggiana <marino.faggiana@nextcloud.com>
  32. //
  33. #import <Foundation/Foundation.h>
  34. @interface OCFileDto : NSObject
  35. @property (nonatomic, copy) NSString *filePath;
  36. @property (nonatomic, copy) NSString *fileName;
  37. @property BOOL isDirectory;
  38. @property long size;
  39. @property long date;
  40. @property long creationDate;
  41. @property (nonatomic, copy) NSString *etag;
  42. @property (nonatomic, copy) NSString *permissions;
  43. @property (nonatomic, copy) NSString *ocId;
  44. @property (nonatomic, copy) NSString *fileId;
  45. @property BOOL isFavorite;
  46. @property BOOL isEncrypted;
  47. @property (nonatomic, copy) NSString *trashbinFileName;
  48. @property (nonatomic, copy) NSString *trashbinOriginalLocation;
  49. @property long trashbinDeletionTime;
  50. @property BOOL hasPreview;
  51. @property (nonatomic, copy) NSString *displayName;
  52. @property (nonatomic, copy) NSString *contentType;
  53. @property (nonatomic, copy) NSString *resourceType;
  54. @property long quotaUsedBytes;
  55. @property long quotaAvailableBytes;
  56. @property (nonatomic, copy) NSString *mountType;
  57. @property (nonatomic, copy) NSString *ownerId;
  58. @property (nonatomic, copy) NSString *ownerDisplayName;
  59. @property BOOL commentsUnread;
  60. @end