RSDFileResultObject

public struct RSDFileResultObject : RSDFileResult, Codable

RSDFileResultObject is a concrete implementation of a result that holds a pointer to a file url.

  • 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 let 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 system clock uptime when the recorder was started (if applicable).

    Declaration

    Swift

    public var startUptime: TimeInterval?
  • url

    The URL with the full path to the file-based result. This should not be encoded in the file result.

    Declaration

    Swift

    public var url: URL? { get set }
  • The relative path to the file-based result.

    Declaration

    Swift

    public var relativePath: String?
  • The MIME content type of the result.

    Declaration

    Swift

    public var contentType: String?
  • Default initializer for this object.

    Declaration

    Swift

    public init(identifier: String, type: RSDResultType = .file)

    Parameters

    identifier

    The identifier string.

    type

    The RSDResultType for this result. Default = .file.