-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class SearchItemViewModel.PoiViewModel extends SearchItemViewModel
ViewModel for a single Poi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
SearchItemViewModel.PoiViewModel.CREATOR
-
Field Summary
Fields Modifier and Type Field Description private final String
description
private final String
openCloseTimeText
private final Integer
siteId
private final Integer
durationInMeters
private final String
locationText
private Boolean
isExpanded
private final Boolean
isGroup
private final String
imageUrl
private String
expandedChildId
private Poi
poi
private final String
id
private final String
name
private final String
type
-
Constructor Summary
Constructors Constructor Description SearchItemViewModel.PoiViewModel(Poi poi, String locationText, Integer durationInMeters, Boolean isExpanded)
Constructs PoiViewModel from a Poi instance SearchItemViewModel.PoiViewModel(String id, String name, String type, String description, String openCloseTimeText, Integer siteId, Integer durationInMeters, String locationText, Boolean isExpanded, Boolean isGroup, String imageUrl, String expandedChildId, Poi poi)
-
Method Summary
Modifier and Type Method Description final String
getDescription()
final String
getOpenCloseTimeText()
final Integer
getSiteId()
Integer
getDurationInMeters()
String
getLocationText()
Boolean
getIsExpanded()
Unit
setIsExpanded(Boolean isExpanded)
Boolean
getIsGroup()
String
getImageUrl()
String
getExpandedChildId()
Unit
setExpandedChildId(String expandedChildId)
Poi
getPoi()
Unit
setPoi(Poi poi)
final String
getId()
final String
getName()
final String
getType()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
Unit
writeToParcel(Parcel parcel, Integer flags)
Integer
describeContents()
-
-
Method Detail
-
getDescription
final String getDescription()
-
getOpenCloseTimeText
final String getOpenCloseTimeText()
-
getDurationInMeters
Integer getDurationInMeters()
-
getLocationText
String getLocationText()
-
getIsExpanded
Boolean getIsExpanded()
-
setIsExpanded
Unit setIsExpanded(Boolean isExpanded)
-
getIsGroup
Boolean getIsGroup()
-
getImageUrl
String getImageUrl()
-
getExpandedChildId
String getExpandedChildId()
-
setExpandedChildId
Unit setExpandedChildId(String expandedChildId)
-
writeToParcel
Unit writeToParcel(Parcel parcel, Integer flags)
-
describeContents
Integer describeContents()
-
-
-
-