Created
June 30, 2018 16:28
-
-
Save wsrzx/eb666659ce6769110a06ab2d83819a12 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
using System; | |
using Newtonsoft.Json; | |
namespace AwesomeSeries.Models | |
{ | |
public class Serie | |
{ | |
[JsonProperty("original_name")] | |
public string OriginalName { get; set; } | |
[JsonProperty("name")] | |
public string Name { get; set; } | |
[JsonProperty("first_air_date")] | |
public DateTimeOffset FirstAirDate { get; set; } | |
[JsonProperty("backdrop_path")] | |
public string BackdropPath { get; set; } | |
[JsonProperty("id")] | |
public long Id { get; set; } | |
[JsonProperty("vote_average")] | |
public double VoteAverage { get; set; } | |
[JsonProperty("overview")] | |
public string Overview { get; set; } | |
[JsonProperty("poster_path")] | |
public string PosterPath { get; set; } | |
} | |
} |
This file contains hidden or 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
using System.Collections.Generic; | |
using System.Text; | |
using System.Globalization; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Converters; | |
namespace AwesomeSeries.Models | |
{ | |
public class SerieResponse | |
{ | |
[JsonProperty("page")] | |
public long Page { get; set; } | |
[JsonProperty("total_results")] | |
public long TotalResults { get; set; } | |
[JsonProperty("total_pages")] | |
public long TotalPages { get; set; } | |
[JsonProperty("results")] | |
public IEnumerable<Serie> Series { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment