// LastSession returns the last configured session in the championship, in the following order:
// Race, Qualifying, Practice, Booking
LastSession returns the last configured session in the championship, in the following order:
Race, Qualifying, Practice, Booking
// LastSession returns the last configured session in the championship in the following order : // Race Qualifying Practice Booking
func (cr *ChampionshipEvent) LastSession() SessionType {
	if cr.RaceSetup.HasMultipleRaces() {
		return SessionTypeSecondRace
	} else if cr.RaceSetup.HasSession(SessionTypeRace) {
		return SessionTypeRace
	} else if cr.RaceSetup.HasSession(SessionTypeQualifying) {
		return SessionTypeQualifying
	} else if cr.RaceSetup.HasSession(SessionTypePractice) {
		return SessionTypePractice
	} else {
		return SessionTypeBooking
	}
}
func ( cr * ChampionshipEvent ) LastSession ( ) SessionType { if cr . RaceSetup . HasMultipleRaces ( ) { return SessionTypeSecondRace } else if cr . RaceSetup . HasSession ( SessionTypeRace ) { return SessionTypeRace } else if cr . RaceSetup . HasSession ( SessionTypeQualifying ) { return SessionTypeQualifying } else if cr . RaceSetup . HasSession ( SessionTypePractice ) { return SessionTypePractice } else { return SessionTypeBooking } }
LastSession returns the last configured session in the championship, in the following order:
Race, Qualifying, Practice, Booking
LastSession returns the last configured session in the championship in the following order : Race Qualifying Practice Booking
// there must be two races as reversed grid positions are on