DITUpdateResult
@interface DITUpdateResult : NSObject
Provides information about a successful update operation on a document.
The update result can be one of the following types:
set
removed
incremented
-
The update result’s type.
Check this value before using one of
asSet
,asRemoved
, orasIncremented
to ensure that you get the correct richer update result object.Declaration
Objective-C
@property (nonatomic, readonly) DITUpdateResultType type;
-
The ID of the document that was updated.
Declaration
Objective-C
@property (nonatomic, readonly) DITDocumentID *_Nonnull docID;
-
The path to the key in the document that was updated.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull path;
-
Return the update result object as a
DITUpdateResultSet
object.Declaration
Objective-C
- (nullable DITUpdateResultSet *)asSet;
Return Value
A
DITUpdateResultSet
object ornil
if the update result’s type is notset
. -
Return the update result object as a
DITUpdateResultRemoved
object.Declaration
Objective-C
- (nullable DITUpdateResultRemoved *)asRemoved;
Return Value
A
DITUpdateResultRemoved
object ornil
if the update result’s type is notremoved
. -
Return the update result object as a
DITUpdateResultIncremented
object.Declaration
Objective-C
- (nullable DITUpdateResultIncremented *)asIncremented;
Return Value
A
DITUpdateResultIncremented
object ornil
if the update result’s type is notincremented
.