Skip to content

Instantly share code, notes, and snippets.

@wsrzx
Created June 30, 2018 16:28
Show Gist options
  • Save wsrzx/eb666659ce6769110a06ab2d83819a12 to your computer and use it in GitHub Desktop.
Save wsrzx/eb666659ce6769110a06ab2d83819a12 to your computer and use it in GitHub Desktop.
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; }
}
}
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