AlgoResponse

Undocumented

  • Undocumented

    See more
  • Metadata

    See more

    Declaration

    Swift

    public struct Metadata
  • Undocumented

    See more
  • Undocumented

  • Undocumented

  • Error * message * stacktrace

    Declaration

    Swift

    public var error:ErrorData?
  • Get text output @warning Please make sure it return text content, otherwise it can cause error. You can check content type from getMetadata() function - returns: return text output.

    Declaration

    Swift

    public func getText() -> String

    Return Value

    return text output.

  • Get json output @warning Please make sure it return json content, otherwise it can cause error. You can check content type from getMetadata() function - returns: return json output. It can be Dictionary or Array

    Declaration

    Swift

    public func getJson() -> Any

    Return Value

    return json output. It can be Dictionary or Array

  • Get binary output @warning Please make sure it return binary content, otherwise it can cause error. You can check content type from getMetadata() function - returns: return binary output.

    Declaration

    Swift

    public func getData() -> Data

    Return Value

    return binary output.

  • Get metadata

    • contentType: content type of metadata
    • duration: duration time taken by algorithm

    Declaration

    Swift

    public func getMetadata() -> Metadata

    Return Value

    Metadata object