Example #1
0
        public void Export(DataConnection dataConnection)
        {
            if (dataConnection == null)
            {
                throw new ArgumentNullException(nameof(dataConnection));
            }

            GameExecutableFileResource.Export(dataConnection.GameExecutableFilePath);
            EnglishLanguageCatalogue.Export(dataConnection.EnglishLanguageFilePath);
            FrenchLanguageCatalogue.Export(dataConnection.FrenchLanguageFilePath);
            GermanLanguageCatalogue.Export(dataConnection.GermanLanguageFilePath);
            EnglishCommentaryCatalogue.Export(dataConnection.EnglishCommentaryFilePath);
            FrenchCommentaryCatalogue.Export(dataConnection.FrenchCommentaryFilePath);
            GermanCommentaryCatalogue.Export(dataConnection.GermanCommentaryFilePath);
        }
Example #2
0
 public DataEndpoint(
     FileResource gameExecutableFileResource,
     EnglishLanguageCatalogue englishLanguageCatalogue,
     FrenchLanguageCatalogue frenchLanguageCatalogue,
     GermanLanguageCatalogue germanLanguageCatalogue,
     EnglishCommentaryCatalogue englishCommentaryCatalogue,
     FrenchCommentaryCatalogue frenchCommentaryCatalogue,
     GermanCommentaryCatalogue germanCommentaryCatalogue)
 {
     EnglishLanguageCatalogue   = englishLanguageCatalogue ?? throw new ArgumentNullException(nameof(englishLanguageCatalogue));
     FrenchLanguageCatalogue    = frenchLanguageCatalogue ?? throw new ArgumentNullException(nameof(frenchLanguageCatalogue));
     GermanLanguageCatalogue    = germanLanguageCatalogue ?? throw new ArgumentNullException(nameof(germanLanguageCatalogue));
     EnglishCommentaryCatalogue = englishCommentaryCatalogue ?? throw new ArgumentNullException(nameof(englishCommentaryCatalogue));
     FrenchCommentaryCatalogue  = frenchCommentaryCatalogue ?? throw new ArgumentNullException(nameof(frenchCommentaryCatalogue));
     GermanCommentaryCatalogue  = germanCommentaryCatalogue ?? throw new ArgumentNullException(nameof(germanCommentaryCatalogue));
     GameExecutableFileResource = gameExecutableFileResource ?? throw new ArgumentNullException(nameof(gameExecutableFileResource));
 }