diff --git a/TMDbLib/Client/TMDbClientCollections.cs b/TMDbLib/Client/TMDbClientCollections.cs index 8710452..148414e 100644 --- a/TMDbLib/Client/TMDbClientCollections.cs +++ b/TMDbLib/Client/TMDbClientCollections.cs @@ -73,5 +73,10 @@ namespace TMDbLib.Client { return await GetCollectionMethodInternal(collectionId, CollectionMethods.Images, language, cancellationToken).ConfigureAwait(false); } + + public async Task GetCollectionTranslationsAsync(int collecitonId, CancellationToken cancellationToken = default) + { + return await GetCollectionMethodInternal(collecitonId, CollectionMethods.Translations, null, cancellationToken).ConfigureAwait(false); + } } } \ No newline at end of file diff --git a/TMDbLib/Objects/Collections/Collection.cs b/TMDbLib/Objects/Collections/Collection.cs index 1ec3cce..9f230e3 100644 --- a/TMDbLib/Objects/Collections/Collection.cs +++ b/TMDbLib/Objects/Collections/Collection.cs @@ -16,6 +16,9 @@ namespace TMDbLib.Objects.Collections [JsonProperty("images")] public Images Images { get; set; } + [JsonProperty("translations")] + public TranslationsContainer Translations { get; set; } + [JsonProperty("name")] public string Name { get; set; } diff --git a/TMDbLib/Objects/Collections/CollectionMethods.cs b/TMDbLib/Objects/Collections/CollectionMethods.cs index f6f6c86..a76777e 100644 --- a/TMDbLib/Objects/Collections/CollectionMethods.cs +++ b/TMDbLib/Objects/Collections/CollectionMethods.cs @@ -9,6 +9,8 @@ namespace TMDbLib.Objects.Collections [EnumValue("Undefined")] Undefined = 0, [EnumValue("images")] - Images = 1 + Images = 1, + [EnumValue("translations")] + Translations = 2, } } \ No newline at end of file