class UserService : HttpClient
UserService VenueNext
Created on 3/20/19. Copyright © 2019 VenueNext Inc. All rights reserved.
<init> |
UserService VenueNext UserService(context: Context) |
authProvider |
val authProvider: OAuth? |
baseUrl |
val baseUrl: String? |
environment |
val environment: Environment? |
serviceBaseUrls |
val serviceBaseUrls: ServiceBaseUrls? |
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): Unit fun login(jwt: String): <ERROR CLASS> |
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> |