DefaultSudoTelephonyClient

public final class DefaultSudoTelephonyClient : SudoTelephonyClient

Default implementation of SudoTelephonyClient.

This class works in general by delegating work in layers starting with a use case. Use cases are fetched from the factory, which is mocked for easy testing.

This class manages the lifecycle of core services that do things for the use cases, e.g. a KeyManager for providing keys and decryption services, a DoFoo object that does foo things and so forth.

For better or for worse error’s are transformed here to SudoTelephonyClientError. for the completion handlers.

Lifecycle

  • Initialize an instance of DefaultSudoTelephonyClient. It uses configuration parameters defined in sudoplatformconfig.json file located in the app bundle.

    Declaration

    Swift

    public convenience init(
        keyNamespace: String = "com.sudoplatform.telephony",
        userClient: SudoUserClient,
        profilesClient: SudoProfilesClient,
        callProviderConfiguration: CallProviderConfiguration?
    ) throws

    Parameters

    keyNamespace

    Namespace to use for the keys and passwords. This should be left as the default property.

    userClient

    SudoUserClient instance used for authentication.

    profilesClient

    SudoProfilesClient instance used for verifying sudo ownership proof. Throws:

Reset

  • Declaration

    Swift

    public func reset() throws

Supported Countries

Search Phone Numbers

Provision Number

List Numbers

Send Message

Get Message

Download Data

Subscriptions

Get Conversations

Calling