ParseService
class ParseService : NSObject
extension ParseService: CLLocationManagerDelegate
Undocumented
-
Undocumented
Declaration
Swift
public static let shared: ParseService -
Undocumented
Declaration
Swift
private lazy var geocoder: CLGeocoder { get set } -
Undocumented
Declaration
Swift
private let locationManager: CLLocationManager -
Undocumented
Declaration
Swift
private var latestLocationForQuery: CLLocation! -
Undocumented
Declaration
Swift
private var isLoadingCommerces: Bool -
Undocumented
Declaration
Swift
private override init() -
Undocumented
Declaration
Swift
func updateExistingParseCommerce(fromCommerce commerce: Commerce, completion: ((_ success: Bool, _ error: Error?) -> Void)? = nil) -
Undocumented
Declaration
Swift
func updateGeoLocation(forCommerce commerce: Commerce, completion: ((_ success: Bool, _ error: Error?) -> Void)? = nil) -
Undocumented
Declaration
Swift
func savePhotosWithCommerce(commerce: Commerce?, photoArray: [UIImage], loadedPhotos: [PFObject], completion: ((_ success: Bool, _ photos: [PFObject]?, _ error: Error?) -> Void)? = nil) -
Undocumented
Declaration
Swift
func updateCommerceThumbnailPicture(fromCommerce commerce: Commerce?, andImages photos: [PFObject], completion: @escaping (_ success: Bool, _ error: Error?) -> Void) -
Undocumented
Declaration
Swift
func saveVideoForCommerce(commerce: Commerce?, videoArray: [TLPHAsset], thumbnailArray: [UIImage], completion: ((_ success: Bool, _ error: Error?) -> Void)? = nil)
-
Undocumented
Declaration
Swift
func sharingPrefsCommerces(withType typeCategorie: String, completion: ((_ commerces: [Commerce]?, _ error: Error?) -> Void)? = nil) -
Undocumented
Declaration
Swift
func locationPrefsCommerces(withType typeCategorie: String, latestKnownPosition: CLLocation, completion: ((_ commerces: [Commerce]?, _ error: Error?) -> Void)? = nil) -
Undocumented
Declaration
Swift
private func queryObjectsFromDB(typeCategorie: String, prefFiltreLocation: Bool, completion: ((_ commerces: [Commerce]?, _ error: Error?) -> Void)? = nil) -
Undocumented
Declaration
Swift
func deleteCommerce(commerce: PFObject, completion: ((_ success: Bool, _ error: Error?) -> Void)? = nil)
-
Undocumented
Declaration
Swift
func deleteAllVideosForCommerce(commerce: PFObject, completion: ((_ success: Bool, _ error: Error?) -> Void)? = nil)
-
CLLocationManagerDelegate DidFailWithError Methods
Declaration
Swift
func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) -
CLLocationManagerDelegate didUpdateLocations Methods
Declaration
Swift
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) -
Fetch commerces collection based on user location params: UserLocation = Latest user location
Declaration
Swift
func fetchCommercesFromUserPosition(userLocation: CLLocation)
ParseService Class Reference