# ClientInterceptor

fun interface ClientInterceptor : Interceptor<DomainMessage>

Client's version of interceptor Implementation example:

    Interceptor { data ->
        when (data) {
          is SuccessRetailerLoginResponse -> {
            // Successfully Logged In
          }

          is ErrorRetailerLoginResponse -> {
            // Login failed
          }
        }
        Result.success(data)
      }

Content copied to clipboard

#### See also

pl.novelpay.protocol.shared.message

where messages listed

Interceptor

## Functions

intercept
Link copied to clipboard
abstract fun intercept(message: DomainMessage): Result<DomainMessage>