/// <summary>
 /// Converts a URL from mtgtop8.com into a ConverterDeck which is populated with all cards and deck name.
 /// </summary>
 /// <param name="url">The URL of the Deck</param>
 /// <param name="deckSectionNames">List of the name of each section for the deck being converted.</param>
 /// <param name="convertGenericFileFunc">
 /// Function to convert a collection of lines from a deck file into a ConverterDeck.
 /// Used when downloading a Deck File from a webpage instead of scraping.
 /// </param>
 /// <returns>A ConverterDeck which is populated with all cards and deck name</returns>
 public override ConverterDeck Convert(
     string url,
     IEnumerable <string> deckSectionNames,
     Func <IEnumerable <string>, IEnumerable <string>, ConverterDeck> convertGenericFileFunc)
 {
     return(WebpageConverter.ConvertURLUsingDeckIDInURL(
                url,
                "d",
                @"http://mtgtop8.com/export_files/deck",
                ".mwDeck",
                deckSectionNames,
                convertGenericFileFunc));
 }
 /// <summary>
 /// Converts a URL from deckcheck.de into a ConverterDeck which is populated with all cards and deck name.
 /// </summary>
 /// <param name="url">The URL of the Deck</param>
 /// <param name="deckSectionNames">List of the name of each section for the deck being converted.</param>
 /// <param name="convertGenericFileFunc">
 /// Function to convert a collection of lines from a deck file into a ConverterDeck.
 /// Used when downloading a Deck File from a webpage instead of scraping.
 /// </param>
 /// <returns>A ConverterDeck which is populated with all cards and deck name</returns>
 public override ConverterDeck Convert(
     string url,
     IEnumerable <string> deckSectionNames,
     Func <IEnumerable <string>, IEnumerable <string>, ConverterDeck> convertGenericFileFunc)
 {
     return(WebpageConverter.ConvertURLUsingDeckIDInURL(
                url,
                "id",
                @"http://www.deckcheck.de/export.php?id=",
                @"&format=mws",
                deckSectionNames,
                convertGenericFileFunc));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Converts a URL from starcitygames.com into a ConverterDeck which is populated with all cards and deck name.
 /// </summary>
 /// <param name="url">The URL of the Deck</param>
 /// <param name="deckSectionNames">List of the name of each section for the deck being converted.</param>
 /// <param name="convertGenericFileFunc">
 /// Function to convert a collection of lines from a deck file into a ConverterDeck.
 /// Used when downloading a Deck File from a webpage instead of scraping.
 /// </param>
 /// <returns>A ConverterDeck which is populated with all cards and deck name</returns>
 public override ConverterDeck Convert(
     string url,
     IEnumerable <string> deckSectionNames,
     Func <IEnumerable <string>, IEnumerable <string>, ConverterDeck> convertGenericFileFunc)
 {
     return(WebpageConverter.ConvertURLUsingDeckIDInURL(
                url,
                "DeckID",
                @"http://sales.starcitygames.com//deckdatabase/deck_files/",
                @"-MODO.txt",
                deckSectionNames,
                convertGenericFileFunc));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Converts a URL from ccgdecks.com into a ConverterDeck which is populated with all cards and deck name.
 /// </summary>
 /// <param name="url">The URL of the Deck</param>
 /// <param name="deckSectionNames">List of the name of each section for the deck being converted.</param>
 /// <param name="convertGenericFileFunc">
 /// Function to convert a collection of lines from a deck file into a ConverterDeck.
 /// Used when downloading a Deck File from a webpage instead of scraping.
 /// </param>
 /// <returns>A ConverterDeck which is populated with all cards and deck name</returns>
 public override ConverterDeck Convert(
     string url,
     IEnumerable <string> deckSectionNames,
     Func <IEnumerable <string>, IEnumerable <string>, ConverterDeck> convertGenericFileFunc)
 {
     return(WebpageConverter.ConvertURLUsingDeckIDInURL(
                url,
                "id",
                @"http://ccgdecks.com/to_mws.php?id=",
                string.Empty,
                deckSectionNames,
                convertGenericFileFunc));
 }
 /// <summary>
 /// Converts a URL from essentialmagic.com into a ConverterDeck which is populated with all cards and deck name.
 /// </summary>
 /// <param name="url">The URL of the Deck</param>
 /// <param name="deckSectionNames">List of the name of each section for the deck being converted.</param>
 /// <param name="convertGenericFileFunc">
 /// Function to convert a collection of lines from a deck file into a ConverterDeck.
 /// Used when downloading a Deck File from a webpage instead of scraping.
 /// </param>
 /// <returns>A ConverterDeck which is populated with all cards and deck name</returns>
 public override ConverterDeck Convert(
     string url,
     IEnumerable <string> deckSectionNames,
     Func <IEnumerable <string>, IEnumerable <string>, ConverterDeck> convertGenericFileFunc)
 {
     return(WebpageConverter.ConvertURLUsingDeckIDInURL(
                url,
                "ID",
                @"http://www.essentialmagic.com/Decks/ExportToApprentice.asp?ID=",
                string.Empty,
                deckSectionNames,
                convertGenericFileFunc));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Converts a URL from magic.tcgplayer.com into a ConverterDeck which is populated with all cards and deck name.
 /// </summary>
 /// <param name="url">The URL of the Deck</param>
 /// <param name="deckSectionNames">List of the name of each section for the deck being converted.</param>
 /// <param name="convertGenericFileFunc">
 /// Function to convert a collection of lines from a deck file into a ConverterDeck.
 /// Used when downloading a Deck File from a webpage instead of scraping.
 /// </param>
 /// <returns>A ConverterDeck which is populated with all cards and deck name</returns>
 public override ConverterDeck Convert(
     string url,
     IEnumerable <string> deckSectionNames,
     Func <IEnumerable <string>, IEnumerable <string>, ConverterDeck> convertGenericFileFunc)
 {
     // Note, it doesn't get the Deck Name properly yet
     return(WebpageConverter.ConvertURLUsingDeckIDInURL(
                url,
                "deck_id",
                @"http://magic.tcgplayer.com/db/Deck_MWS.asp?ID=",
                string.Empty,
                deckSectionNames,
                convertGenericFileFunc));
 }
 /// <summary>
 /// Converts a URL from decklists.net into a ConverterDeck which is populated with all cards and deck name.
 /// </summary>
 /// <param name="url">The URL of the Deck</param>
 /// <param name="deckSectionNames">List of the name of each section for the deck being converted.</param>
 /// <param name="convertGenericFileFunc">
 /// Function to convert a collection of lines from a deck file into a ConverterDeck.
 /// Used when downloading a Deck File from a webpage instead of scraping.
 /// </param>
 /// <returns>A ConverterDeck which is populated with all cards and deck name</returns>
 public override ConverterDeck Convert(
     string url,
     IEnumerable <string> deckSectionNames,
     Func <IEnumerable <string>, IEnumerable <string>, ConverterDeck> convertGenericFileFunc)
 {
     // Note, it doesn't get the Deck Name properly yet
     return(WebpageConverter.ConvertURLUsingDeckIDInURL(
                url,
                "deckId",
                @"http://www.decklists.net/index.php?option=com_ohmydeckdb&view=deck&controller=deck&deckId=",
                @"&layout=download&tmpl=component&frm=mws",
                deckSectionNames,
                convertGenericFileFunc));
 }