app / sg.edu.ntu.scse.cz2006.gymbuddies.datastruct / GymSearchBy

GymSearchBy

data class GymSearchBy

Data Structure to store Gym Search Parameters

Note that in rating, -1 = All, 1-5 is the respective counts

Constructors

<init>

Gym Search Parameters

GymSearchBy(sort: Int = SORT_ABC_ASC, distance: Double = 10.0, rating: Int = -1)

Properties

distance

Double Distance radius around the user

val distance: Double

rating

Int rating selected, will be that rating and greater. -1 for all

val rating: Int

sort

Int Sort val, MUST be SORT_ABC_ASC, SORT_ABC_DSC, SORT_FAV_ASC, SORT_FAV_DSC

val sort: Int

Companion Object Properties

SORT_ABC_ASC

Sort gyms by alphabetical ascending order

const val SORT_ABC_ASC: Int

SORT_ABC_DSC

Sort gyms by alphabetical descending order

const val SORT_ABC_DSC: Int

SORT_FAV_ASC

Sort gyms by popularity ascending order

const val SORT_FAV_ASC: Int

SORT_FAV_DSC

Sort gyms by popularity descending order

const val SORT_FAV_DSC: Int