RSDCollectionResultObject
public struct RSDCollectionResultObject : RSDCollectionResult, RSDNavigationResult, Codable, RSDCopyWithIdentifier
RSDCollectionResultObject
is used include multiple results associated with a single step or async action that
may have more that one result.
-
The identifier associated with the task, step, or asynchronous action.
Declaration
Swift
public let identifier: String
-
A String that indicates the type of the result. This is used to decode the result using a
RSDFactory
.Declaration
Swift
public var type: RSDResultType
-
The start date timestamp for the result.
Declaration
Swift
public var startDate: Date
-
The end date timestamp for the result.
Declaration
Swift
public var endDate: Date
-
The list of input results associated with this step. These are generally assumed to be answers to field inputs, but they are not required to implement the
RSDAnswerResult
protocol.Declaration
Swift
public var inputResults: [RSDResult]
-
The identifier for the step to go to following this result. If non-nil, then this will be used in navigation handling.
Declaration
Swift
public var skipToIdentifier: String?
-
Default initializer for this object.
Declaration
Swift
public init(identifier: String)
Parameters
identifier
The identifier string.
-
Initialize from a
Decoder
. This decoding method will use theRSDFactory
instance associated with the decoder to decode theinputResults
.Throws
DecodingError
Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
The decoder to use to decode this instance.
-
Encode the result to the given encoder.
Throws
EncodingError
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
The encoder to use to encode this instance.
-
Declaration
Swift
public func copy(with identifier: String) -> RSDCollectionResultObject