Skip to content

Commit 3475e5c

Browse files
committed
Changed Track.lovedBy to viaUser to match the API
Added viaQuery to Track
1 parent 302b759 commit 3475e5c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Source/Track.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public final class Track: NSObject, ResponseObjectSerializable, ResponseCollecti
1818
public let thumbURLMedium: NSURL?
1919
public let thumbURLLarge: NSURL?
2020
public let rank: Int?
21-
public let lovedBy: String?
21+
public let viaUser: String?
22+
public let viaQuery: String?
2223
public let postedBy: String
2324
public let postedById: Int
2425
public let postedCount: Int
@@ -82,7 +83,8 @@ public final class Track: NSObject, ResponseObjectSerializable, ResponseCollecti
8283
}
8384

8485
self.rank = representation.valueForKeyPath("rank") as? Int
85-
self.lovedBy = representation.valueForKeyPath("via_user") as? String
86+
self.viaUser = representation.valueForKeyPath("via_user") as? String
87+
self.viaQuery = representation.valueForKeyPath("via_query") as? String
8688
self.postedBy = representation.valueForKeyPath("sitename") as! String
8789
self.postedById = representation.valueForKeyPath("siteid") as! Int
8890
self.postedCount = representation.valueForKeyPath("posted_count") as! Int

0 commit comments

Comments
 (0)