vnticket / com.venuenext.vnticket.service / StubService

StubService

class StubService : HttpClient, BaseCoroutineScope

StubService VenueNext

Created on 7/27/19. Copyright © 2019 VenueNext Inc. All rights reserved.

Exceptions

StandsException

class StandsException : Exception

Constructors

<init>

StubService VenueNext

StubService(context: Context)

Properties

authProvider

val authProvider: OAuth?

baseUrl

val baseUrl: String?

environment

val environment: Environment?

serviceBaseUrls

val serviceBaseUrls: ServiceBaseUrls?

Functions

fetchTicketingAccount

suspend fun fetchTicketingAccount(): <ERROR CLASS>

Fetch ticketing account via API server.

fun fetchTicketingAccount(success: (result: Stub?) -> Unit, failure: (Exception) -> Unit): Unit

fetchTicketingAccountAsync

Fetch ticketing account via API server.

fun fetchTicketingAccountAsync(): <ERROR CLASS>

login

Login into ticketing account via API server.

fun login(email: String, externalId: String, loginFlow: String = "sdk", apiToken: String? = null): <ERROR CLASS>
fun login(email: String, externalId: String, loginFlow: String = "sdk", success: (result: Stub?) -> Unit, failure: (Exception) -> Unit): Unit

logout

Logout of ticketing account via API server.

fun logout(email: String, externalId: String, loginFlow: String = "sdk"): Deferred<String?>
fun logout(success: () -> Unit, failure: (Exception) -> Unit): Unit