This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (BOOL) saveShow:(Show *)show { | |
| if (! [self exists:show]) { | |
| NSEntityDescription *entity = [NSEntityDescription entityForName:@"Show" inManagedObjectContext:self.managedObjectContext]; | |
| NSManagedObject *newShow = [[NSManagedObject alloc] initWithEntity:entity insertIntoManagedObjectContext:self.managedObjectContext]; | |
| NSError *error; | |
| [newShow setValue:show.title forKey:@"title"]; | |
| [newShow setValue:[NSNumber numberWithLong:show.identifier] forKey:@"id"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.form +++ Section("Filters") | |
| <<< SwitchRow("sort_by_distance_tag"){ | |
| $0.value = User.sharedInstance.filters?.sortByDistance ?? false | |
| $0.title = "Sorteer op afstand" | |
| }.onChange({ row in | |
| UserManager() | |
| .updateFilters(cities: nil, sort_by_distance: row.value, distance: nil, completion: nil) | |
| }) | |
| <<< StepperRow() { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| open class GetJobService<T: Mappable>: BaseService<T, ErrorMappable> { | |
| open var hashId: String | |
| public init (hashId: String) { | |
| self.hashId = hashId | |
| } | |
| open override var endpoint: String { | |
| return "api/v1/contractor/jobs/" + hashId + "?include=open_shifts.contractor_match.contractor,open_shifts.contractor_match.shift,open_shifts.contractor_match.contractor_has_worked_before,open_shifts.contractor_match.tariff_incl_costs,open_shifts.contractor_match.actions,open_shifts.contractor_match.contractor_status,open_shifts.contractor_match.substituted_by,open_shifts.contractor_match.substituting_for,open_shifts.contractor_match.can_claim_cancellation_fee,work_shifts.contractor_match.contractor,work_shifts.contractor_match.shift,work_shifts.contractor_match.contractor_has_worked_before,work_shifts.contractor_match.tariff_incl_costs,work_shifts.contractor_match.actions,work_shifts.contractor_match.contractor_status,work_shifts.contractor_match.substituted_by,work_shifts.contractor_match.su |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Job.swift | |
| // Temper | |
| // | |
| // Created by Said Rehouni on 24/07/2017. | |
| // Copyright © 2017 Temper B.V. All rights reserved. | |
| // | |
| import CoreLocation | |
| import ObjectMapper |
OlderNewer