-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-555: Rename
users/{id}/recommendations/{type}/{sort}
request to …
…`users/{id}/favorites/{type}/{sort}` - rename URLs - rename `ITraktRecommendation` => `ITraktFavorite` - rename `UserPersonalRecommendationsRequest` => `UserFavoritesRequest` - rename `TraktRecommendationObjectType` => `TraktFavoriteObjectType`
- Loading branch information
1 parent
2568539
commit b62bbe9
Showing
34 changed files
with
1,890 additions
and
1,889 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace TraktNet.Enums | ||
{ | ||
/// <summary>Determines the type of an object in a favorite item.</summary> | ||
public sealed class TraktFavoriteObjectType : TraktEnumeration | ||
{ | ||
/// <summary>An invalid object type.</summary> | ||
public static TraktFavoriteObjectType Unspecified { get; } = new TraktFavoriteObjectType(); | ||
|
||
/// <summary>The recommendation contains a movie.</summary> | ||
public static TraktFavoriteObjectType Movie { get; } = new TraktFavoriteObjectType(1, "movie", "movies", "Movie"); | ||
|
||
/// <summary>The recommendation contains a show.</summary> | ||
public static TraktFavoriteObjectType Show { get; } = new TraktFavoriteObjectType(2, "show", "shows", "Show"); | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="TraktFavoriteObjectType" /> class.<para /> | ||
/// The initialized <see cref="TraktFavoriteObjectType" /> is invalid. | ||
/// </summary> | ||
public TraktFavoriteObjectType() | ||
{ | ||
} | ||
|
||
private TraktFavoriteObjectType(int value, string objectName, string uriName, string displayName) : base(value, objectName, uriName, displayName) | ||
{ | ||
} | ||
} | ||
} |
27 changes: 0 additions & 27 deletions
27
Source/Lib/Trakt.NET/Enums/TraktRecommendationObjectType.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
Source/Lib/Trakt.NET/Objects/Get/Users/Json/Factories/FavoriteJsonIOFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace TraktNet.Objects.Get.Users.Json.Factories | ||
{ | ||
using Get.Users.Json.Reader; | ||
using Get.Users.Json.Writer; | ||
using Objects.Json; | ||
|
||
internal class FavoriteJsonIOFactory : IJsonIOFactory<ITraktFavorite> | ||
{ | ||
public IObjectJsonReader<ITraktFavorite> CreateObjectReader() => new FavoriteObjectJsonReader(); | ||
|
||
public IObjectJsonWriter<ITraktFavorite> CreateObjectWriter() => new FavoriteObjectJsonWriter(); | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
Source/Lib/Trakt.NET/Objects/Get/Users/Json/Factories/RecommendationJsonIOFactory.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.