Skip to content

Commit

Permalink
Merge pull request #85 from olgadanylova/master
Browse files Browse the repository at this point in the history
* SearchMatchesResult is Codable
  • Loading branch information
Olha Danylova authored Jun 19, 2019
2 parents 7230e97 + 4df1d33 commit 4991a2a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/SwiftSDK/Geo/GeoPoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
}
metadata.removeLast()
metadata += "}"
return "GeoPoint{objectId='\(self.objectId ?? "")', latitude=\(self.latitude), longitude=\(self.longitude), categories=[\(categories)], metadata=\(metadata)}"
return "GeoPoint{objectId='\(self.objectId ?? "")', latitude=\(self.latitude), longitude=\(self.longitude), categories=[\(categories)], metadata=\(metadata), distance=\(self.distance)}"
}

func setObjectId(objectId: String) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftSDK/Geo/SearchMatchesResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* ********************************************************************************************************************
*/

@objcMembers open class SearchMatchesResult: NSObject {
@objcMembers open class SearchMatchesResult: NSObject, Codable {

open private(set) var geoPoint: GeoPoint?
open private(set) var matches: Double = 0
Expand Down
Binary file not shown.

0 comments on commit 4991a2a

Please sign in to comment.