POIViewModel

open class POIViewModel(coreApi: CoreApi, propertyId: Int, coroutineDispatcherProvider: CoroutineDispatcherProvider) : ViewModel

Constructors

Link copied to clipboard
constructor(coreApi: CoreApi, propertyId: Int, coroutineDispatcherProvider: CoroutineDispatcherProvider)

Types

Link copied to clipboard
sealed class POIUiState

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
fun composePoiTitle(longName: String?, shortName: String?): String

Composes the legacy POI detail-card title from its CMS long and short names by delegating to SearchDisplayNames.formatDisplayName. This is the seam that pins the POI card onto the same parenthetical rule as the search rows and the selected-entity detail card (EntityDetailViewModel.composeTitle): a distinct short name renders as "Long (Short)", while a blank short name (or one equal to the long name) yields the long name alone — never an empty "()".

Link copied to clipboard
Link copied to clipboard
fun getLocationMarketingEventFeed(propertyId: Int, campaignId: String, marketingProvider: CoreApi.FeedProvider)
Link copied to clipboard
fun getPoiEntityDetails(entity: Entity?, context: Context)
Link copied to clipboard
fun getPoiView(poiType: Constants.POIType, buildingId: Int, propertyId: Int, entityId: Int, context: Context)
Link copied to clipboard
Link copied to clipboard
fun performLocationEventFeedAction(propertyId: Int, campaignId: String, marketingProvider: CoreApi.FeedProvider, navigateToMap: Consumer<Entity>)
Link copied to clipboard
fun updateFavoriteEntity(entity: Entity, isFavorite: Boolean, context: Context)