MaxHasADHD / TraktKit

Swift wrapper for Trakt.tv API.
MIT License
112 stars 37 forks source link

Unable to access TraktMovieRelease properties #55

Closed ryangullotti closed 3 years ago

ryangullotti commented 3 years ago

All the properties for this struct are not marked public so I'm not able to actually get the release dates for a movie from the api.

public struct TraktMovieRelease: Codable, Hashable {
    let country: String
    let certification: String
    let releaseDate: Date
    let releaseType: ReleaseType
    let note: String?

    enum CodingKeys: String, CodingKey {
        case country
        case certification
        case releaseDate = "release_date"
        case releaseType = "release_type"
        case note
    }

    public enum ReleaseType: String, Codable {
        case unknown
        case premiere
        case limited
        case theatrical
        case digital
        case physical
        case tv
    }
}
schaechtele commented 3 years ago

This also applies for the properties in the UserStats struct and the structs Movies, Shows, Seasons, Episodes, Network which are inside UserStats.

MaxHasADHD commented 3 years ago

Sorry y'all, I'll try to get this fixed ASAP.

MaxHasADHD commented 3 years ago

Just pushed a fix for this and tried to find other instances where properties were left as internal.

ryangullotti commented 3 years ago

Thanks!