import Foundation
import GenAPI

public struct SubscriptionPageResponse: Codable, Equatable {
    public var content: SubscriptionPageContentResponse
    public var language: String
    public var platform: String?

    public init(content: SubscriptionPageContentResponse, language: String, platform: String? = nil) {
        self.content = content
        self.language = language
        self.platform = platform
    }

    init(_ remote: GenAPI.SubscriptionPageResponse) {
        self.content = SubscriptionPageContentResponse(remote.content)
        self.language = remote.language
        self.platform = remote.platform
    }
}
