vnorderui / com.venuenext.vnorderui.stands / StandsViewModel

StandsViewModel

class StandsViewModel : AndroidViewModel

StandsViewModel VenueNext

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

Constructors

<init>

StandsViewModel VenueNext

StandsViewModel(application: Application)

Properties

currentMenu

var currentMenu: Menu?

currentSeat

var currentSeat: Seat?

currentStand

var currentStand: Stand?

deliveryDelegate

lateinit var deliveryDelegate: DeliveryMetadataDelegate

isPreferredCardHolder

var isPreferredCardHolder: Boolean

menus

var menus: List<Menu>?

productType

var productType: ProductType?

stands

var stands: List<Stand>?

userIsSeasonTicketHolder

var userIsSeasonTicketHolder: Boolean

Functions

deleteSeatAsync

fun deleteSeatAsync(): Deferred<Deferred<Unit>>

getMenus

fun getMenus(): Deferred<List<Menu>>

getSeatAsync

fun getSeatAsync(): Deferred<Seat>

getStandsWithMenus

fun getStandsWithMenus(): Deferred<List<Stand>>

getStubAccountSeasonTicketHolderStatus

fun getStubAccountSeasonTicketHolderStatus(context: Context): Unit

insertSeatAsync

fun insertSeatAsync(seat: Seat): Deferred<Unit>

reloadStands

fun reloadStands(): Deferred<GetStandResult?>

syncMenus

fun syncMenus(menus: List<Menu>?): Deferred<Unit>

syncStands

fun syncStands(stands: List<Stand>?): Deferred<Unit>