14 lines
322 B
Swift
14 lines
322 B
Swift
import Foundation
|
|
|
|
public struct PagedResponse<T>: Decodable, Sendable where T: Decodable & Sendable {
|
|
public var count: Int?
|
|
public var pageToken: String?
|
|
public var items: [T]
|
|
|
|
public init(items: [T]) {
|
|
self.count = items.count
|
|
self.pageToken = nil
|
|
self.items = items
|
|
}
|
|
}
|