57 - (
nullable id) propertyForKey: (NSString*)key;
60 - (
nullable id) objectForKeyedSubscript: (NSString*)key;
62 #pragma mark ATTACHMENTS 84 @property (readonly) BOOL propertiesAvailable;
93 error: (NSError**)outError;
109 - (void) setObject: (
nullable id)object forKeyedSubscript: (NSString*)key;
128 - (void) setAttachmentNamed: (NSString*)name
129 withContentType: (
nullable NSString*)mimeType
140 - (void) setAttachmentNamed: (NSString*)name
141 withContentType: (
nullable NSString*)mimeType
142 contentURL: (
nullable NSURL*)fileURL;
147 - (void) removeAttachmentNamed: (NSString*)name;
NSString * parentRevisionID
The ID of the parentRevision.
Definition: CBLRevision.h:40
NSString * revisionID
The ID of this revision.
Definition: CBLRevision.h:34
#define NS_ASSUME_NONNULL_BEGIN
Definition: CBLBase.h:20
A revision of a CBLDocument.
Definition: CBLRevision.h:17
CBLDocument * document
The document this is a revision of.
Definition: CBLRevision.h:20
BOOL isGone
Does this revision mark the deletion or removal (from available channels) of its document ...
Definition: CBLRevision.h:31
A CouchbaseLite database.
Definition: CBLDatabase.h:38
BOOL isDeletion
Does this revision mark the deletion of its document? (In other words, does it have a "_deleted" prop...
Definition: CBLRevision.h:27
#define nullable
Definition: CBLBase.h:22
A CouchbaseLite document (as opposed to any specific revision of it.)
Definition: CBLDocument.h:16
CBLJSONDict * userProperties
The user-defined properties, without the ones reserved by CouchbaseLite.
Definition: CBLRevision.h:54
An unsaved new revision.
Definition: CBLRevision.h:103
#define NS_ASSUME_NONNULL_END
Definition: CBLBase.h:21
CBLJSONDict * properties
The revision's contents as parsed from JSON.
Definition: CBLRevision.h:50
instancetype NS_UNAVAILABLE()
CBLArrayOf(NSString *) *attachmentNames
The names of all attachments (an array of strings).
An existing revision of a CBLDocument.
Definition: CBLRevision.h:80
CBLDatabase * database
The database this revision's document belongs to.
Definition: CBLRevision.h:23
A binary attachment to a document revision.
Definition: CBLAttachment.h:18
CBLSavedRevision * parentRevision
The revision this one is a child of.
Definition: CBLRevision.h:37