12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #import <Foundation/Foundation.h>
- #import <Realm/RLMObject.h>
- #import <Realm/RLMProperty.h>
- #import <Realm/RLMSyncUtil.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface RLMSyncPermissionOffer : RLMObject
- @property (readonly) NSString *id;
- @property (readonly) NSDate *createdAt;
- @property (readonly) NSDate *updatedAt;
- @property (nullable, readonly) NSNumber<RLMInt> *statusCode;
- @property (nullable, readonly) NSString *statusMessage;
- @property (readonly) RLMSyncManagementObjectStatus status;
- @property (nullable, readonly) NSString *token;
- @property (readonly) NSString *realmUrl;
- @property (readonly) BOOL mayRead;
- @property (readonly) BOOL mayWrite;
- @property (readonly) BOOL mayManage;
- @property (nullable, readonly) NSDate *expiresAt;
- + (instancetype)permissionOfferWithRealmURL:(NSString *)realmURL
- expiresAt:(nullable NSDate *)expiresAt
- read:(BOOL)mayRead
- write:(BOOL)mayWrite
- manage:(BOOL)mayManage;
- @end
- NS_ASSUME_NONNULL_END
|