Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@objc final class ReviewPage: NSObject {
let properties: Page<Review.Properties>
init(_ properties: Page<Review.Properties>) {
self.properties = properties
}
@objc var page: UInt {
return properties.page
}
@objc var totalResults: UInt {
return properties.total_results
}
@objc var totalPages: UInt {
return properties.total_pages
}
@objc public var results: [Review] {
return properties.results.map { Review($0) }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.