sdk / com.sygic.travel.sdk.trips.model / Trip
Trip
data class Trip :
TripInfo
Trip entity representation. It contains all metadata and days' definitions.
Constructors
Name | Summary |
---|---|
<init> | Trip(id: String , name: String ?, startsOn: LocalDate?, privacyLevel: TripPrivacyLevel , url: String , privileges: TripPrivileges , isUserSubscribed: Boolean , isDeleted: Boolean , media: TripMedia ?, updatedAt: Instant?, isChanged: Boolean , ownerId: String ?, version: Int , destinations: List < String >, days: List < TripDay >) Trip entity representation. It contains all metadata and days' definitions. |
Properties
Name | Summary |
---|---|
days | val days: List < TripDay > |
daysCount | var daysCount: Int |
destinations | val destinations: List < String > |
id | val id: String |
isChanged | val isChanged: Boolean |
isDeleted | val isDeleted: Boolean |
isUserSubscribed | val isUserSubscribed: Boolean |
media | val media: TripMedia ? |
name | val name: String ? |
ownerId | val ownerId: String ? |
privacyLevel | val privacyLevel: TripPrivacyLevel |
privileges | val privileges: TripPrivileges |
startsOn | val startsOn: LocalDate? |
updatedAt | val updatedAt: Instant? |
url | val url: String |
version | val version: Int |
Functions
Name | Summary |
---|---|
getPlaceIds | fun getPlaceIds(): Set < String > |
withDays | fun withDays(lambda: (days: MutableList < TripDay >) -> List < TripDay >): Trip |
withItinerary | fun withItinerary(dayIndex: Int , lambda: (itinerary: MutableList < TripDayItem >) -> List < TripDayItem >): Trip |
Inherited Functions
Name | Summary |
---|---|
isLocal | open fun isLocal(): Boolean |
Companion Object Functions
Name | Summary |
---|---|
createEmpty | fun createEmpty(): Trip Creates a new trip instance with a local ID. |