RLMUserAPIKey

Objective-C


@interface RLMUserAPIKey : NSObject

Swift

@_nonSendable(_assumed) class RLMUserAPIKey : NSObject, @unchecked Sendable

从服务器接收的 APIKey 的 UserAPIKey 模型。

  • 指示API密钥是否已禁用

    声明

    Objective-C

    @property (nonatomic, readonly) BOOL disabled;

    Swift

    var disabled: Bool { get }
  • 密钥的名称。

    声明

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull name;

    Swift

    var name: String { get }
  • key

    实际密钥。 仅在首次创建API密钥时包含在响应中。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *key;

    Swift

    var key: String? { get }
  • API密钥的 ObjectId

    声明

    Objective-C

    @property (nonatomic, readonly) NS_REFINED_FOR_SWIFT RLMObjectId *objectId;