DittoWriteTransactionResultObjC

@objc
public class DittoWriteTransactionResultObjC : NSObject

An Objective-C compatible equivalent to DittoWriteTransactionResult. Describes the result of a write transaction operation.

  • inserted: Describes a document that has been inserted, referencing its ID and the collection it was inserted into.
  • updated: Describes a document that has been updated, referencing its ID and the collection it belongs to.
  • evicted: Describes a document that has been evicted, referencing its ID and the collection it belonged to.
  • removed: Describes a document that has been removed, referencing its ID and the collection it belonged to.

You can switch on the type and then get the value of the result as the appropriate type using the relevant function out of:

  • asInserted
  • asUpdated
  • asEvicted
  • asRemoved