vncore / com.venuenext.vncore.service / UserService

UserService

class UserService : HttpClient

UserService VenueNext

Created on 3/20/19. Copyright © 2019 VenueNext Inc. All rights reserved.

Constructors

<init>

UserService VenueNext

UserService(context: Context)

Properties

authProvider

val authProvider: OAuth?

baseUrl

val baseUrl: String?

environment

val environment: Environment?

serviceBaseUrls

val serviceBaseUrls: ServiceBaseUrls?

Functions

getProfile

fun getProfile(uuid: String): Profile

jwtStubsLogin

Login into ticketing account via API server.

fun jwtStubsLogin(jwt: String): Deferred<Unit>

login

Login to API service via async/await.

fun login(): <ERROR CLASS>
fun login(success: (result: User?) -> Unit, failure: (Exception) -> Unit): Unitfun login(jwt: String): <ERROR CLASS>

Extension Functions

delete

fun <T : Any> HttpClient.delete(url: String, authProvider: OAuth?, serializer: KSerializer<T>? = null, body: ByteArray? = null, contentType: String? = APPLICATION_JSON): HttpResponse<T>

get

fun <T : Any> HttpClient.get(url: String, authProvider: OAuth?, serializer: KSerializer<T>? = null, body: ByteArray? = null, contentType: String? = APPLICATION_JSON): HttpResponse<T>

patch

fun <T : Any> HttpClient.patch(url: String, authProvider: OAuth?, serializer: KSerializer<T>? = null, body: ByteArray? = null, contentType: String? = APPLICATION_JSON): HttpResponse<T>

post

fun <T : Any> HttpClient.post(url: String, authProvider: OAuth?, serializer: KSerializer<T>? = null, body: ByteArray? = null, contentType: String? = APPLICATION_JSON): HttpResponse<T>