Skip to content

Instantly share code, notes, and snippets.

@ksloginov
Created May 14, 2012 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksloginov/2694406 to your computer and use it in GitHub Desktop.
Save ksloginov/2694406 to your computer and use it in GitHub Desktop.
public class Movie
{
[JsonProperty("content_id")]
public int Id;
[JsonProperty("title_ru")]
public string TitleRu;
[JsonProperty("title_en")]
public string TitleEn;
// public string Currency;
//
// public float Price;
// public bool IsFree;
//
// public string[] GenresArray;
// public string Genres;
//
// public int Year;
// public string[] CountriesArray;
// public string Country;
[JsonProperty("rating")]
public double Rating = 0;
// public string[] DirectorsArray;
// public string Directors;
[JsonProperty("actors")]
public string[] ActorsArray;
[JsonProperty("description")]
public string Description;
// public string[] StudiosArray;
// public string Studio;
// public string Length;
// public string TrailerUrl;
// public string FragmentUrl;
// public string FilmUrl;
//
[JsonProperty("movie_drm")]
public string MovieDRM;
//
// public string ImgUrlBase;
//
// public string Json;
public bool IsDRM
{
get
{
return (MovieDRM != "nodrm");
}
}
public string Actors
{
get
{
return string.Join(", ", ActorsArray);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment