-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to support new design changes from IMDB, private data fetchin…
…g support (disabled by default)
- Loading branch information
Showing
782 changed files
with
29,988 additions
and
18,921 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
20 changes: 20 additions & 0 deletions
20
JMovies.IMDb.Common/Extensions/BaseDataFetchSettingsExtensions.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,20 @@ | ||
using JMovies.IMDb.Common.Constants; | ||
using JMovies.IMDb.Entities.Settings; | ||
|
||
namespace JMovies.IMDb.Common.Extensions | ||
{ | ||
/// <summary> | ||
/// Provides extension methods for the BasicDataFetchSettings type of objects | ||
/// </summary> | ||
public static class BaseDataFetchSettingsExtensions | ||
{ | ||
/// <summary> | ||
/// Gets the active culture if one preferred or the default | ||
/// </summary> | ||
/// <returns>The active culture (preferred or default)</returns> | ||
public static string GetActiveCulture(this BaseDataFetchSettings settings) | ||
{ | ||
return !string.IsNullOrEmpty(settings.PreferredCulture) ? settings.PreferredCulture : IMDbConstants.DefaultScrapingCulture; | ||
} | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace JMovies.IMDb.Entities.PrivateAPI | ||
{ | ||
/// <summary> | ||
/// Class Definition of a private API Response | ||
/// </summary> | ||
public class APIData | ||
{ | ||
/// <summary> | ||
/// Production Data property | ||
/// </summary> | ||
[JsonPropertyName("title")] | ||
public ProductionData ProductionData { get; set; } | ||
} | ||
} |
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,16 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace JMovies.IMDb.Entities.PrivateAPI | ||
{ | ||
/// <summary> | ||
/// Class Definition of a private API Response | ||
/// </summary> | ||
public class APIResponse | ||
{ | ||
/// <summary> | ||
/// Main Data property | ||
/// </summary> | ||
[JsonPropertyName("data")] | ||
public APIData Data { get; set; } | ||
} | ||
} |
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,16 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace JMovies.IMDb.Entities.PrivateAPI | ||
{ | ||
/// <summary> | ||
/// Class Definition of a private Displayable Property | ||
/// </summary> | ||
public class DisplayableProperty | ||
{ | ||
/// <summary> | ||
/// Value of a displayable property | ||
/// </summary> | ||
[JsonPropertyName("value")] | ||
public DisplayablePropertyValue Value { get; set; } | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
JMovies.IMDb.Entities/PrivateAPI/DisplayablePropertyValue.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,16 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace JMovies.IMDb.Entities.PrivateAPI | ||
{ | ||
/// <summary> | ||
/// Class Definition of a private Displayable Property Value | ||
/// </summary> | ||
public class DisplayablePropertyValue | ||
{ | ||
/// <summary> | ||
/// Plain Text Value of a displayable property | ||
/// </summary> | ||
[JsonPropertyName("plainText")] | ||
public string PlainText { get; set; } | ||
} | ||
} |
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,16 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace JMovies.IMDb.Entities.PrivateAPI.Production | ||
{ | ||
/// <summary> | ||
/// Class Definition of a private Production AKA Data | ||
/// </summary> | ||
public class AKAData | ||
{ | ||
/// <summary> | ||
/// Edges property | ||
/// </summary> | ||
[JsonPropertyName("edges")] | ||
public AKAsEdge[] AKAEdges { get; set; } | ||
} | ||
} |
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,22 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace JMovies.IMDb.Entities.PrivateAPI.Production | ||
{ | ||
/// <summary> | ||
/// Class Definition of a private Production AKA Node | ||
/// </summary> | ||
public class AKANode | ||
{ | ||
/// <summary> | ||
/// Country of the AKA | ||
/// </summary> | ||
[JsonPropertyName("country")] | ||
public CountryInfo Country { get; set; } | ||
|
||
/// <summary> | ||
/// Displayable Property of the AKA | ||
/// </summary> | ||
[JsonPropertyName("displayableProperty")] | ||
public DisplayableProperty DisplayableProperty { get; set; } | ||
} | ||
} |
Oops, something went wrong.