Package-level declarations

The member's submission history, shared with Locations, and the deprecated facility types.

Types

Link copied to clipboard
class Beacon(var factoryId: String? = null, var deviceId: String? = null, var facilityId: Int = 0, var uuid: String? = null, var major: Long? = null, var minor: Long? = null)

Beacon — represents a Bluetooth beacon associated with a Facility.

Link copied to clipboard
class Facility(var id: Int = 0, var isPrimary: Boolean = false, verified: Boolean = false, var name: String? = null, var address: String? = null, var city: String? = null, var state: String? = null, var type: LocationType? = null, var latitude: Double? = null, var longitude: Double? = null, var radius: Double? = null, var dwell: Int? = null, var beacons: List<Beacon?>? = emptyList(), var status: FacilityStatus = if (verified) FacilityStatus.VERIFIED else FacilityStatus.UNKNOWN)

Facility — represents a physical or virtual location in the Advanta network.

Link copied to clipboard

Verification state of a Facility from the member's perspective.

Link copied to clipboard

The category of a facility or check-in location in ActiveFit.

Link copied to clipboard
class MemberSubmission(val globalId: String, val kind: MemberSubmissionKind?, val name: String?, val status: MemberSubmissionStatus?, val statusName: String?, val reasonNote: String?, val description: String?, val locationCategoryId: Int?, val locationCategoryName: String?, val locationTypeId: Int?, val locationTypeName: String?, val locationId: Long?, val reportStatusName: String?, val address: MemberSubmissionAddress?, val latitude: Double?, val longitude: Double?, val createdAt: String?, val problemType: LocationProblemType?)

One row of the member's submission history — either a place they nominated or a problem they reported on an existing location, in a single shape so both render in one list. Returned by Locations.getMySubmissions.

Link copied to clipboard
class MemberSubmissionAddress(val addressLine1: String?, val addressLine2: String?, val city: String?, val stateProvince: String?, val postalCode: String?, val country: String?)

Address block of a MemberSubmission: the nominated place's address, or the reported location's. Every field is null when the backend did not send it.

Link copied to clipboard

What a MemberSubmission is: a place the member proposed, or a problem they reported on an existing location. Each entry maps to a backend serverName wire string — decode server values with fromServerName rather than valueOf, since matching is case-insensitive and unknown values yield null instead of throwing.

Link copied to clipboard
class MemberSubmissionsPage(val items: List<MemberSubmission>, val pageNumber: Int?, val pageSize: Int?, val totalCount: Int?, val totalPages: Int?)

One page of the member's submission history, as returned by Locations.getMySubmissions.

Link copied to clipboard

Review state of a MemberSubmission, normalized by the backend into one vocabulary for nominations and reports alike (a report's Resolved maps to APPROVED, Dismissed to REJECTED; its untranslated value still travels in MemberSubmission.reportStatusName). Decode server values with fromServerName — matching is case-insensitive and unknown values yield null instead of throwing.

Link copied to clipboard
class NominatedFacility(var currentlyAMember: Boolean = false, var nominationId: Int? = 0, var status: String? = "", var clubName: String? = "", var managerName: String? = "", var clubPhone: String? = "", var address1: String? = "", var address2: String? = "", var city: String? = "", var stateCode: String? = "", var zip: String? = "", var countryId: Int? = 0, var createdDateTime: String? = "")

Represents a facility that has been nominated by a user.