PendingTransactionsResult

public final class PendingTransactionsResult

Holds the result of the pending transactions.

  • The type of error.

    Declaration

    Swift

    public fileprivate(set) var error: Error?
  • The detailed information of the error.

    Declaration

    Swift

    public var errorDescription: String? { get }
  • The flag to indicate an error.

    Declaration

    Swift

    public var hasError: Bool { get }
  • The array of PendingTransaction structures.

    Declaration

    Swift

    public fileprivate(set) var transactions: [PendingTransaction]
  • The count of all pending transactions.

    Remark

    The value is representative of all pending transactions.

    Declaration

    Swift

    public fileprivate(set) var pendingTransactionCount: Int
  • Parses the object into an PendingTransactionsResult.

    Throws

    IBMMobileKitError.invalidDataFromServer, IBMMobileKitError.unableToParseData

    Declaration

    Swift

    open static func parse(_ data: [String:Any], nextTransactionOnly: Bool, orderBy: ComparisonResult = .orderedDescending) throws -> PendingTransactionsResult

    Parameters

    data

    The object to deserialize from.

    nextTransactionOnly

    Filters the transactions only to return the next pending based on creation date.

    orderBy

    Orders the list of trnasactions. Default ComparisonResult.orderedDescending.

    Return Value

    Deserialized PendingTransactionsResult.