Ejemplo n.º 1
0
 /// <summary>
 /// API call to get the description
 /// </summary>
 /// <param name="WebContent"></param>
 /// <returns></returns>
 public string Get_Overview(RootObject WebContent)
 {
     return(WebContent.data.Media.description);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// API call to get the img url
 /// </summary>
 /// <param name="WebContent"></param>
 /// <returns></returns>
 public string Get_ImageUrl(RootObject WebContent)
 {
     return(WebContent.data.Media.coverImage.large);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// API call too get the rating
 /// </summary>
 /// <param name="WebContent"></param>
 /// <returns></returns>
 public string Get_Rating(RootObject WebContent)
 {
     return((WebContent.data.Media.averageScore / 10).ToString());
 }
Ejemplo n.º 4
0
 /// <summary>
 /// API call to get the genre of the anime
 /// </summary>
 /// <param name="WebContent"></param>
 /// <returns></returns>
 public List <string> Get_Genre(RootObject WebContent)
 {
     return(WebContent.data.Media.genres);
 }