//
//  ApiResponse.swift
//  Popcorn Night
//
//  Created by Michael Isaakidis on 17/09/2018.
//  Copyright © 2018 Michael Isaakidis. All rights reserved.
//

struct MoviesAPIResponse: Decodable {
    let page: Int
    let totalResults: Int
    let totalPages: Int
    let results: [Movie]
    
    enum CodingKeys: String, CodingKey {
        case totalResults = "total_results"
        case totalPages = "total_pages"
        case page = "page"
        case results = "results"
    }
}

struct GenreAPIResponse: Decodable {
    let genres: [Genre]
    enum CodingKeys: String, CodingKey {
        case genres
    }
}
