Last active
June 8, 2018 23:48
-
-
Save gallaugher/8d9b850d50f76bb69c53fdef493fe582 to your computer and use it in GitHub Desktop.
Spot.swift convenience initializers
This file contains 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
init(name: String, address: String, coordinate: CLLocationCoordinate2D, averageRating: Double, numberOfReviews: Int, postingUserID: String, documentID: String) { | |
self.name = name | |
self.address = address | |
self.coordinate = coordinate | |
self.averageRating = averageRating | |
self.numberOfReviews = numberOfReviews | |
self.postingUserID = postingUserID | |
self.documentID = documentID | |
} | |
convenience override init() { | |
self.init(name: "", address: "", coordinate: CLLocationCoordinate2D(), averageRating: 0.0, numberOfReviews: 0, postingUserID: "", documentID: "") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment