ShadowDocument
A shadow document for each client will exist on the client side and also on the server side.
A shadow document is updated after a successful patch has been performed.
<T> the type of the Document that this instance shadows.
-
Represents the latest client version that this shadow document was based on.
Declaration
Swift
public let clientVersion: Int -
Represents the latest server version that the this shadow document was based on.
Declaration
Swift
public let serverVersion: Int -
The document itself.
Declaration
Swift
public let clientDocument: ClientDocument<T> -
Default init.
Declaration
Swift
public init(clientVersion: Int, serverVersion: Int, clientDocument: ClientDocument<T>)Parameters
clientVersionhe latest client version that this shadow document was based on.
serverVersionthe latest server version that the this shadow document was based on.
clientDocument. -
Printable protocol implementation, provides a string representation of the object.
Declaration
Swift
public var description: String
View on GitHub
ShadowDocument Class Reference