Event types
- Need to be able to obtain event types from the server
GET /events/activity_types
[
"yoga",
"barre"
]
Event types
GET /events/activity_types
[
"yoga",
"barre"
]
[self authenticateUsingOAuthWithURLString:@"/oauth/token"
username:@"[email protected]"
password:@"ZapY9mYZrpanZX3cyr8Dk3xjidtGWb"
scope:@""
success:^(AFOAuthCredential *credential) {
NSLog(@"Token: %@", credential.accessToken);
[AFOAuthCredential storeCredential:credential
withIdentifier:FITTER_OAUTH_TOKEN];
self.currentUser = nil;
The Social login flow that we'll be following is as follows (taken from SO):
SELECT | |
core_events.id AS id, | |
core_events.name AS name, | |
core_events.description AS description, | |
core_events.start_time AS start_time, | |
core_events.end_time AS end_time, | |
core_events.price AS price, | |
core_events.booking_url AS booking_url, | |
core_events.room AS room, | |
core_events.availability AS availability, |
Platform conventions
Easy to navigate
The current implementation has us requesting OrganisationVenue
's based on the events they run on a day-to-day basis. This means on a Monday, only OrganisationVenue
's that have events running that day should be shown.
A typical request is only for one single day, as each day is loaded independently. Parameters:
lat
lon
radius
start_time
end_time
##What's needed for simple implementation of free classes:##
New flag on OrganisationVenue
: trial_class
, whether or not the venue has a free class for first time users.
Check in bookings for whether the class is a free trial class, and don't charge, can do this either with:
trial_class
to specify it needs booking for free.Probably a few limitations with this route, but I feel it's fastest to release.
Also need image_url
on /promotions
route.
extension Car: AutoBuildable {} | |
// run Sourcery | |
// get this for free! -> | |
let car = CarBuilder(wheels: 4) // any param without a default value goes into the initializer | |
.set(color: .red) | |
.set(hasCruiseControl: true) | |
.make() |