-
Default initializer
Declaration
Swift
init()
-
Beaches
Declaration
Swift
var beaches: [Beach] { get }
-
Set beaches
Declaration
Swift
func set(beaches: [PlaceJSON])
Parameters
beaches
API results
-
Beaches
Declaration
Swift
var brands: [Brand] { get }
-
Set brands
Declaration
Swift
func set(brands: [BrandJSON])
Parameters
brands
API results
-
Countries
Declaration
Swift
var countries: [Country] { get }
-
Get country
Declaration
Swift
func country(id: Int?) -> Country?
Parameters
id
country ID
Return Value
Country if found
-
Set countries
Declaration
Swift
func set(countries: [CountryJSON])
Parameters
countries
API results
-
Dive sites
Declaration
Swift
var divesites: [DiveSite] { get }
-
Set dive sites
Declaration
Swift
func set(divesites: [PlaceJSON])
Parameters
divesites
API results
-
Golf courses
Declaration
Swift
var golfcourses: [GolfCourse] { get }
-
Set golf courses
Declaration
Swift
func set(golfcourses: [PlaceJSON])
Parameters
golfcourses
API results
-
Hotels
Declaration
Swift
var hotels: [Hotel] { get }
-
Set hotels
Declaration
Swift
func set(hotels: [HotelJSON])
Parameters
hotels
API results
-
Locations
Declaration
Swift
var locations: [Location] { get }
-
Get filtered locations
Declaration
Swift
func locations(filter: String) -> [Location]
Parameters
filter
Filter
Return Value
Locations if found
-
Get location
Declaration
Swift
func location(id: Int?) -> Location?
Parameters
id
location ID
Return Value
Location if found
-
Set locations
Declaration
Swift
func set(locations: [LocationJSON])
Parameters
locations
API results
-
Get place
Parameters
item
list and ID
visible
Whether to restrict to visible items
Return Value
Place if found
-
Get places
Parameters
list
list
visible
Whether to restrict to visible items
Return Value
Places in list
-
Get matching places
Declaration
Swift
func mappables(matching: String, visible: Bool = false) -> [Mappable]
Parameters
matching
String
visible
Whether to restrict to visible items
Return Value
Places matching
-
Get milestones
Declaration
Swift
func milestones(list: Checklist) -> Milestones?
Parameters
list
Checklist
Return Value
Milestones if found
-
Set milestones
Declaration
Swift
func set(milestones: SettingsJSON)
Parameters
milestones
API results
-
Get photo
Declaration
Swift
func photo(id: Int) -> Photo?
Parameters
id
ID
Return Value
Photo
-
Get location photos
Declaration
Swift
func photos(location: Int) -> [Photo]
Parameters
id
location ID
Return Value
Photos if found
-
Get user photos by location
Declaration
Swift
func photos(user id: Int, location: Int) -> [Photo]
Parameters
id
User ID
location
Location
Return Value
Photos if found
-
Set location photos
Declaration
Swift
func set(locationPhotos id: Int, info: PhotosInfoJSON)
Parameters
id
Location ID
photos
API results
-
Set photo
Declaration
Swift
func set(photo: PhotoReply)
Parameters
photo
API result
-
Set photos page
Declaration
Swift
func set(photos page: Int, user id: Int, info: PhotosPageInfoJSON)
Parameters
page
Index
id
User ID
info
API results
-
Get user photo pages
Declaration
Swift
func photosPages(user id: Int) -> Results<PhotosPageInfo>
Parameters
id
User ID
Return Value
Photo pages if found
-
Delete user photo
Declaration
Swift
func delete(photo photoId: Int)
Parameters
photoId
Photo ID
-
Delete all user photos
Declaration
Swift
func delete(photos userId: Int)
Parameters
id
User ID
-
Get location posts
Declaration
Swift
func posts(location id: Int) -> [Post]
Parameters
id
location ID
Return Value
Posts if found
-
Get user posts
Declaration
Swift
func posts(user id: Int) -> [Post]
Parameters
id
User ID
Return Value
Posts if found
-
Get post
Declaration
Swift
func post(id: Int) -> Post?
Parameters
id
ID
Return Value
Post
-
Set post
Declaration
Swift
func set(post: PostReply)
Parameters
post
API results
-
Set posts
Declaration
Swift
func set(posts: [PostJSON], editorId: Int)
Parameters
posts
API results
editorId
logged in user
-
Delete user post
Declaration
Swift
func delete(post postId: Int)
Parameters
postId
Post ID
-
Delete all user posts
Declaration
Swift
func delete(posts userId: Int)
Parameters
id
User ID
-
Get rankings pages
Declaration
Swift
func rankings(query: RankingsQuery) -> Results<RankingsPageInfo>
Parameters
query
Filter query
Return Value
Rankings pages if found
-
Delete all rankings for checklist
Declaration
Swift
func delete(rankings: Checklist)
Parameters
rankings
Checklist
-
Set rankings query
Declaration
Swift
func set(rankings query: RankingsQuery, info: RankingsPageInfoJSON)
Parameters
query
Query
info
API results
-
Restaurants
Declaration
Swift
var restaurants: [Restaurant] { get }
-
Set restaurants
Declaration
Swift
func set(restaurants: [RestaurantJSON])
Parameters
restaurants
API results
-
Get user scorecard
Parameters
list
Checklist
id
userID
Return Value
Scorecard if found
-
Set scorecard
Declaration
Swift
func set(scorecard: ScorecardWrapperJSON)
Parameters
scorecard
API results
-
UN Countries
Declaration
Swift
var uncountries: [UNCountry] { get }
-
Set UN countries
Declaration
Swift
func set(uncountries: [LocationJSON])
Parameters
uncountries
API results
-
Get user
Declaration
Swift
func user(id: Int) -> User?
Parameters
id
User ID
Return Value
User if found
-
Set user
Declaration
Swift
func set(user data: UserJSON)
Parameters
data
API results
-
WHSs
Declaration
Swift
var whss: [WHS] { get }
-
Get WHS
Declaration
Swift
func whs(id: Int) -> WHS?
Parameters
id
WHS ID
Return Value
WHS if found
-
Set WHSs
Declaration
Swift
func set(whss: [WHSJSON])
Parameters
whss
API results
-
Resolve Realm crossthread reference
Parameters
reference
Reference
Return Value
Mappable if found
-
Update page stamp
Declaration
Swift
func update(stamp: RankingsPageInfo)
Parameters
stamp
Page