ActionResult

public struct ActionResult

Result of an action.

  • Action is succeeded or not.

    Declaration

    Swift

    public let succeeded: Bool
  • Name of an action.

    Declaration

    Swift

    public let actionName: String
  • Data returned from thing.

    Declaration

    Swift

    public let data: Any?
  • Error message.

    Declaration

    Swift

    public let errorMessage: String?
  • Initialize ActionResult.

    Developers rarely use this initializer. If you want to recreate same instance from stored data or transmitted data, you can use this method.

    Declaration

    Swift

    public init(
          _ succeeded: Bool,
          actionName: String,
          data: Any? = nil,
          errorMessage: String? = nil)