EMGroupSharedFile.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /**
  2. * \~chinese
  3. * @header EMGroupSharedFile.h
  4. * @abstract 群组共享文件
  5. * @author Hyphenate
  6. * @version 3.00
  7. *
  8. * \~english
  9. * @header EMGroupSharedFile.h
  10. * @abstract Group share file
  11. * @author Hyphenate
  12. * @version 3.00
  13. */
  14. #import <Foundation/Foundation.h>
  15. /**
  16. * \~chinese
  17. * 群共享文件对象
  18. *
  19. * \~english
  20. * The group shared file object.
  21. */
  22. @interface EMGroupSharedFile : NSObject
  23. /**
  24. * \~chinese
  25. * 文件 ID,是文件的唯一标识符。
  26. *
  27. * \~english
  28. * The file ID, which is the unique identifier of a file.
  29. */
  30. @property (nonatomic, copy, readonly) NSString *fileId;
  31. /**
  32. * \~chinese
  33. * 文件名称。
  34. *
  35. * \~english
  36. * The name of the file.
  37. */
  38. @property (nonatomic, copy, readonly) NSString *fileName;
  39. /**
  40. * \~chinese
  41. * 文件发布者。
  42. *
  43. * \~english
  44. * The owner of the file.
  45. */
  46. @property (nonatomic, copy, readonly) NSString *fileOwner;
  47. /**
  48. * \~chinese
  49. * 文件创建 Unix 时间戳,单位为毫秒。
  50. *
  51. * \~english
  52. * The Unix timestamp for creating the file, in ms.
  53. */
  54. @property (nonatomic) long long createdAt;
  55. /**
  56. * \~chinese
  57. * 文件大小(字节)。
  58. *
  59. * \~english
  60. * The data length (bytes) of the file.
  61. */
  62. @property (nonatomic) long long fileSize;
  63. /**
  64. * \~chinese
  65. * 获取群共享文件实例。
  66. *
  67. * @param aFileId 文件 ID。
  68. *
  69. * @result 群共享文件实例。
  70. *
  71. * \~english
  72. * Gets the shared file instance.
  73. *
  74. * @param aFileId The file ID.
  75. *
  76. * @result The shared file instance.
  77. */
  78. + (instancetype)sharedFileWithId:(NSString*)aFileId;
  79. #pragma mark - EM_DEPRECATED_IOS 3.8.8
  80. /**
  81. * \~chinese
  82. * 文件创建时间
  83. *
  84. * \~english
  85. * Create Time of File
  86. */
  87. @property (nonatomic) long long createTime
  88. __deprecated_msg("Use createdAt instead");
  89. @end