/// <summary>
 /// Cast search
 /// </summary>
 /// <param name="Title">Title to search for</param>
 /// <returns>List of people information</returns>
 public People CastLookup(Title Title)
 {
     this.Token = "";
     this.TokenSecret = "";
     this.Method = HTTPMethod.GET;
     this.Url = new Uri(Title.CastLink);
     return new People(new Uri(GenerateRequest()).Read());
 }
        /// <summary>
        /// Title synopsis
        /// </summary>
        /// <param name="Title">Title to search for</param>
        /// <returns>The synopsis info</returns>
        public string TitleSynopsis(Title Title)
        {
            this.Token = "";
            this.TokenSecret = "";
            this.Method = HTTPMethod.GET;
            this.Url = new Uri(Title.SynopsisLink);
            string Content = new Uri(GenerateRequest()).Read();

            XmlDocument Document = new XmlDocument();
            Document.LoadXml(Content);
            foreach (XmlNode Children in Document.ChildNodes)
            {
                if (Children.Name.Equals("synopsis", StringComparison.CurrentCultureIgnoreCase))
                {
                    return Children.InnerText;
                }
            }

            return "";
        }
 /// <summary>
 /// Similar title search
 /// </summary>
 /// <param name="Title">Title to use as our search base</param>
 /// <returns>List of title information</returns>
 public Titles SimilarTitles(Title Title)
 {
     this.Token = "";
     this.TokenSecret = "";
     this.Method = HTTPMethod.GET;
     this.Url = new Uri(Title.SimilarTitleLink);
     return new Titles(new Uri(GenerateRequest()).Read());
 }
 /// <summary>
 /// Formats available for the title
 /// </summary>
 /// <param name="Title">Title to use as our search base</param>
 /// <returns>List of available formats</returns>
 public List<string> FormatsAvailable(Title Title)
 {
     this.Token = "";
     this.TokenSecret = "";
     this.Method = HTTPMethod.GET;
     this.Url = new Uri(Title.FormatsAvailableLink);
     string Content = new Uri(GenerateRequest()).Read();
     List<string> Results = new List<string>();
     if (!string.IsNullOrEmpty(Content))
     {
         XmlDocument Document = new XmlDocument();
         Document.LoadXml(Content);
         foreach (XmlNode Children in Document.ChildNodes)
         {
             if (Children.Name.Equals("delivery_formats", StringComparison.CurrentCultureIgnoreCase))
             {
                 foreach (XmlNode Child in Children.ChildNodes)
                 {
                     if (Child.Name.Equals("availability", StringComparison.CurrentCultureIgnoreCase))
                     {
                         foreach (XmlNode Category in Child.ChildNodes)
                         {
                             if (Category.Name.Equals("category", StringComparison.CurrentCultureIgnoreCase))
                             {
                                 Results.Add(Category.Attributes["term"].Value);
                             }
                         }
                     }
                 }
             }
         }
     }
     return Results;
 }
Example #5
0
 /// <summary>
 /// Similar title search
 /// </summary>
 /// <param name="Title">Title to use as our search base</param>
 /// <returns>List of title information</returns>
 public Titles SimilarTitles(Title Title)
 {
     this.Token = "";
     this.TokenSecret = "";
     this.Method = HTTPMethod.GET;
     this.Url = new Uri(Title.SimilarTitleLink);
     return new Titles(FileManager.GetFileContents(new Uri(GenerateRequest())));
 }
Example #6
0
 /// <summary>
 /// Director search
 /// </summary>
 /// <param name="Title">Title to search for</param>
 /// <returns>List of people information</returns>
 public People DirectorLookup(Title Title)
 {
     this.Token = "";
     this.TokenSecret = "";
     this.Method = HTTPMethod.GET;
     this.Url = new Uri(Title.DirectorsLink);
     return new People(FileManager.GetFileContents(new Uri(GenerateRequest())));
 }