From a327fcd493fc5b91471aee567c4a917444a05246 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sun, 23 Apr 2023 15:51:35 +0200 Subject: [PATCH] Added header files to all existing source code in this package. --- Sources/Clients/AmiiboClient.swift | 12 ++++++++++++ Sources/Endpoints/GetAmiiboEndpoint.swift | 12 ++++++++++++ Sources/Endpoints/GetCharacterEndpoint.swift | 12 ++++++++++++ Sources/Endpoints/GetGameSeriesEndpoint.swift | 12 ++++++++++++ Sources/Endpoints/GetLastUpdatedEndpoint.swift | 12 ++++++++++++ Sources/Endpoints/GetSeriesEndpoint.swift | 12 ++++++++++++ Sources/Endpoints/GetTypeEndpoint.swift | 12 ++++++++++++ Sources/Errors/AmiiboClientError.swift | 12 ++++++++++++ Sources/Extensions/DateFormatter+Formatter.swift | 12 ++++++++++++ Sources/Extensions/String+Host.swift | 12 ++++++++++++ Sources/Extensions/String+Path.swift | 12 ++++++++++++ Sources/Extensions/String+Scheme.swift | 12 ++++++++++++ Sources/Filters/AmiiboFilter.swift | 12 ++++++++++++ Sources/Filters/KeyNameFilter.swift | 12 ++++++++++++ Sources/Models/Amiibo.swift | 12 ++++++++++++ Sources/Models/AmiiboGame.swift | 12 ++++++++++++ Sources/Models/AmiiboGameUsage.swift | 12 ++++++++++++ Sources/Models/AmiiboRelease.swift | 12 ++++++++++++ Sources/Models/KeyName.swift | 12 ++++++++++++ Sources/Models/LastUpdated.swift | 12 ++++++++++++ Sources/Models/Result.swift | 12 ++++++++++++ Sources/Protocols/Filter.swift | 12 ++++++++++++ Sources/Protocols/Service.swift | 12 ++++++++++++ Sources/Services/AmiiboService.swift | 12 ++++++++++++ Tests/Clients/AmiiboClientTests.swift | 12 ++++++++++++ Tests/Helpers/Endpoints/TestEndpoint.swift | 12 ++++++++++++ Tests/Helpers/Extensions/Data+Seed.swift | 12 ++++++++++++ .../Helpers/Extensions/GetAmiiboEndpoint+Init.swift | 12 ++++++++++++ .../Extensions/GetCharacterEndpoint+Init.swift | 12 ++++++++++++ .../Extensions/GetGameSeriesEndpoint+Init.swift | 12 ++++++++++++ .../Helpers/Extensions/GetSeriesEndpoint+Init.swift | 12 ++++++++++++ Tests/Helpers/Extensions/GetTypeEndpoint+Init.swift | 12 ++++++++++++ Tests/Helpers/Extensions/MockURLRequest+Init.swift | 12 ++++++++++++ Tests/Helpers/Extensions/String+Seed.swift | 12 ++++++++++++ Tests/Helpers/Models/TestModel.swift | 12 ++++++++++++ Tests/Services/AmiiboServiceTests.swift | 12 ++++++++++++ 36 files changed, 432 insertions(+) diff --git a/Sources/Clients/AmiiboClient.swift b/Sources/Clients/AmiiboClient.swift index 170b829..e7f4e99 100644 --- a/Sources/Clients/AmiiboClient.swift +++ b/Sources/Clients/AmiiboClient.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Communications import Foundation diff --git a/Sources/Endpoints/GetAmiiboEndpoint.swift b/Sources/Endpoints/GetAmiiboEndpoint.swift index c192882..f1f79f5 100644 --- a/Sources/Endpoints/GetAmiiboEndpoint.swift +++ b/Sources/Endpoints/GetAmiiboEndpoint.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Communications import Foundation diff --git a/Sources/Endpoints/GetCharacterEndpoint.swift b/Sources/Endpoints/GetCharacterEndpoint.swift index 3646091..92b90e1 100644 --- a/Sources/Endpoints/GetCharacterEndpoint.swift +++ b/Sources/Endpoints/GetCharacterEndpoint.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Communications import Foundation diff --git a/Sources/Endpoints/GetGameSeriesEndpoint.swift b/Sources/Endpoints/GetGameSeriesEndpoint.swift index d347d25..6295bb8 100644 --- a/Sources/Endpoints/GetGameSeriesEndpoint.swift +++ b/Sources/Endpoints/GetGameSeriesEndpoint.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Communications import Foundation diff --git a/Sources/Endpoints/GetLastUpdatedEndpoint.swift b/Sources/Endpoints/GetLastUpdatedEndpoint.swift index 70fc19f..6e45451 100644 --- a/Sources/Endpoints/GetLastUpdatedEndpoint.swift +++ b/Sources/Endpoints/GetLastUpdatedEndpoint.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Communications import Foundation diff --git a/Sources/Endpoints/GetSeriesEndpoint.swift b/Sources/Endpoints/GetSeriesEndpoint.swift index 0b6a91d..6ec7eed 100644 --- a/Sources/Endpoints/GetSeriesEndpoint.swift +++ b/Sources/Endpoints/GetSeriesEndpoint.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Communications import Foundation diff --git a/Sources/Endpoints/GetTypeEndpoint.swift b/Sources/Endpoints/GetTypeEndpoint.swift index 99d4d4a..df64aa6 100644 --- a/Sources/Endpoints/GetTypeEndpoint.swift +++ b/Sources/Endpoints/GetTypeEndpoint.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Communications import Foundation diff --git a/Sources/Errors/AmiiboClientError.swift b/Sources/Errors/AmiiboClientError.swift index f0894fb..b008a9d 100644 --- a/Sources/Errors/AmiiboClientError.swift +++ b/Sources/Errors/AmiiboClientError.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + /// This error definitions represents any error happening while the client makes a request to the remote API and handles the respective response, excluding the decoding of the retrieved data into a particular model. public enum AmiiboClientError: Error { /// The status code of the response is not the expected one, which is `.ok` (`200`). diff --git a/Sources/Extensions/DateFormatter+Formatter.swift b/Sources/Extensions/DateFormatter+Formatter.swift index e209df5..f5627d3 100644 --- a/Sources/Extensions/DateFormatter+Formatter.swift +++ b/Sources/Extensions/DateFormatter+Formatter.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Core import Foundation diff --git a/Sources/Extensions/String+Host.swift b/Sources/Extensions/String+Host.swift index 1e2c023..3e1d27f 100644 --- a/Sources/Extensions/String+Host.swift +++ b/Sources/Extensions/String+Host.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + extension String { enum Host { static let amiiboApi = "www.amiiboapi.com" diff --git a/Sources/Extensions/String+Path.swift b/Sources/Extensions/String+Path.swift index fbd2a7f..9c4c167 100644 --- a/Sources/Extensions/String+Path.swift +++ b/Sources/Extensions/String+Path.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + extension String { enum Path { static let amiibo = "/api/amiibo/" diff --git a/Sources/Extensions/String+Scheme.swift b/Sources/Extensions/String+Scheme.swift index e5291e3..8a952bb 100644 --- a/Sources/Extensions/String+Scheme.swift +++ b/Sources/Extensions/String+Scheme.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + extension String { enum Scheme { static let https = "https" diff --git a/Sources/Filters/AmiiboFilter.swift b/Sources/Filters/AmiiboFilter.swift index 1e9d1f8..74676fb 100644 --- a/Sources/Filters/AmiiboFilter.swift +++ b/Sources/Filters/AmiiboFilter.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos. public struct AmiiboFilter { diff --git a/Sources/Filters/KeyNameFilter.swift b/Sources/Filters/KeyNameFilter.swift index c8c09c9..24cb817 100644 --- a/Sources/Filters/KeyNameFilter.swift +++ b/Sources/Filters/KeyNameFilter.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + /// This filter provides all the possible parameters (and combinations) available at the remote API applies when filtering amiibos series (``AmiiboSeriesFilter``), amiibo types (``AmiiboTypeFilter``), characters (``CharacterFilter``), or game series (``GameSeriesFilter``). public struct KeyNameFilter { diff --git a/Sources/Models/Amiibo.swift b/Sources/Models/Amiibo.swift index 5725f26..c971d7e 100644 --- a/Sources/Models/Amiibo.swift +++ b/Sources/Models/Amiibo.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + /// This model struct represents an amiibo that is retrieved from the respective [remote API endpoint](https://www.amiiboapi.com/docs/#amiibo). public struct Amiibo { diff --git a/Sources/Models/AmiiboGame.swift b/Sources/Models/AmiiboGame.swift index 377a0df..d9b1b15 100644 --- a/Sources/Models/AmiiboGame.swift +++ b/Sources/Models/AmiiboGame.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + extension Amiibo { /// This model structs represents a game that is related to an amiibo, when requested to the respective [remote API endpoint](https://www.amiiboapi.com/docs/#showGames). public struct Game { diff --git a/Sources/Models/AmiiboGameUsage.swift b/Sources/Models/AmiiboGameUsage.swift index 05ca396..8865e2f 100644 --- a/Sources/Models/AmiiboGameUsage.swift +++ b/Sources/Models/AmiiboGameUsage.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + extension Amiibo.Game { /// This model struct represents how an amiibo is used with a particular game, when requested to the respective [remote API endpoint](https://www.amiiboapi.com/docs/#showUsage). public struct Usage { diff --git a/Sources/Models/AmiiboRelease.swift b/Sources/Models/AmiiboRelease.swift index fc78b2e..cce47ec 100644 --- a/Sources/Models/AmiiboRelease.swift +++ b/Sources/Models/AmiiboRelease.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Foundation extension Amiibo { diff --git a/Sources/Models/KeyName.swift b/Sources/Models/KeyName.swift index 228ad88..03bc50d 100644 --- a/Sources/Models/KeyName.swift +++ b/Sources/Models/KeyName.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + /// This model is a concrete genetic definition that represents the following models: ``AmiiboSeries``, ``AmiiboType``, ``Character`` and ``GameSeries``. public struct KeyName { diff --git a/Sources/Models/LastUpdated.swift b/Sources/Models/LastUpdated.swift index 1b78c00..89cbaa4 100644 --- a/Sources/Models/LastUpdated.swift +++ b/Sources/Models/LastUpdated.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Foundation /// This model represents the latest date when the remote API has been updated. diff --git a/Sources/Models/Result.swift b/Sources/Models/Result.swift index 11405bb..55c904a 100644 --- a/Sources/Models/Result.swift +++ b/Sources/Models/Result.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + struct Result { let items: [Model] } diff --git a/Sources/Protocols/Filter.swift b/Sources/Protocols/Filter.swift index 39a805c..dc67d2a 100644 --- a/Sources/Protocols/Filter.swift +++ b/Sources/Protocols/Filter.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Communications protocol Filter { diff --git a/Sources/Protocols/Service.swift b/Sources/Protocols/Service.swift index ab6fe6d..4145f63 100644 --- a/Sources/Protocols/Service.swift +++ b/Sources/Protocols/Service.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Foundation protocol Service { diff --git a/Sources/Services/AmiiboService.swift b/Sources/Services/AmiiboService.swift index 79b7fe5..094adad 100644 --- a/Sources/Services/AmiiboService.swift +++ b/Sources/Services/AmiiboService.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Foundation /// This service provides the interface to make remote API calls to the [Amiibo API](https://www.amiiboapi.com) and, subsequently, handle its responses. diff --git a/Tests/Clients/AmiiboClientTests.swift b/Tests/Clients/AmiiboClientTests.swift index 0c49a07..2ef1847 100644 --- a/Tests/Clients/AmiiboClientTests.swift +++ b/Tests/Clients/AmiiboClientTests.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Communications import Foundation import XCTest diff --git a/Tests/Helpers/Endpoints/TestEndpoint.swift b/Tests/Helpers/Endpoints/TestEndpoint.swift index c3f0755..3a73d1d 100644 --- a/Tests/Helpers/Endpoints/TestEndpoint.swift +++ b/Tests/Helpers/Endpoints/TestEndpoint.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Communications import Foundation diff --git a/Tests/Helpers/Extensions/Data+Seed.swift b/Tests/Helpers/Extensions/Data+Seed.swift index 77d9cbb..dd0c65c 100644 --- a/Tests/Helpers/Extensions/Data+Seed.swift +++ b/Tests/Helpers/Extensions/Data+Seed.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Foundation extension Data { diff --git a/Tests/Helpers/Extensions/GetAmiiboEndpoint+Init.swift b/Tests/Helpers/Extensions/GetAmiiboEndpoint+Init.swift index 1e35d74..cf725a4 100644 --- a/Tests/Helpers/Extensions/GetAmiiboEndpoint+Init.swift +++ b/Tests/Helpers/Extensions/GetAmiiboEndpoint+Init.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + @testable import AmiiboService extension GetAmiiboEndpoint { diff --git a/Tests/Helpers/Extensions/GetCharacterEndpoint+Init.swift b/Tests/Helpers/Extensions/GetCharacterEndpoint+Init.swift index 9efb7ca..bb82e5a 100644 --- a/Tests/Helpers/Extensions/GetCharacterEndpoint+Init.swift +++ b/Tests/Helpers/Extensions/GetCharacterEndpoint+Init.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + @testable import AmiiboService extension GetCharacterEndpoint { diff --git a/Tests/Helpers/Extensions/GetGameSeriesEndpoint+Init.swift b/Tests/Helpers/Extensions/GetGameSeriesEndpoint+Init.swift index dedd9dc..d0b4818 100644 --- a/Tests/Helpers/Extensions/GetGameSeriesEndpoint+Init.swift +++ b/Tests/Helpers/Extensions/GetGameSeriesEndpoint+Init.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + @testable import AmiiboService extension GetGameSeriesEndpoint { diff --git a/Tests/Helpers/Extensions/GetSeriesEndpoint+Init.swift b/Tests/Helpers/Extensions/GetSeriesEndpoint+Init.swift index 9360fc0..d556fde 100644 --- a/Tests/Helpers/Extensions/GetSeriesEndpoint+Init.swift +++ b/Tests/Helpers/Extensions/GetSeriesEndpoint+Init.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + @testable import AmiiboService extension GetSeriesEndpoint { diff --git a/Tests/Helpers/Extensions/GetTypeEndpoint+Init.swift b/Tests/Helpers/Extensions/GetTypeEndpoint+Init.swift index 20329d1..22b7a31 100644 --- a/Tests/Helpers/Extensions/GetTypeEndpoint+Init.swift +++ b/Tests/Helpers/Extensions/GetTypeEndpoint+Init.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + @testable import AmiiboService extension GetTypeEndpoint { diff --git a/Tests/Helpers/Extensions/MockURLRequest+Init.swift b/Tests/Helpers/Extensions/MockURLRequest+Init.swift index 25d5abc..eec9c5f 100644 --- a/Tests/Helpers/Extensions/MockURLRequest+Init.swift +++ b/Tests/Helpers/Extensions/MockURLRequest+Init.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Communications import Foundation diff --git a/Tests/Helpers/Extensions/String+Seed.swift b/Tests/Helpers/Extensions/String+Seed.swift index e03a9bc..2e85809 100644 --- a/Tests/Helpers/Extensions/String+Seed.swift +++ b/Tests/Helpers/Extensions/String+Seed.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + extension String { enum Amiibo { static let withoutGameOrUsage = "{\"amiibo\":[{\"amiiboSeries\":\"Super Smash Bros.\",\"character\":\"Mario\",\"gameSeries\":\"Super Mario\",\"head\":\"00000000\",\"image\":\"https://raw.githubusercontent.com/N3evin/AmiiboAPI/master/images/icon_00000000-00000002.png\",\"name\":\"Mario\",\"release\":{\"au\":\"2014-11-29\",\"eu\":\"2014-11-28\",\"jp\":\"2014-12-06\",\"na\":\"2014-11-21\"},\"tail\":\"00000002\",\"type\":\"Figure\"},{\"amiiboSeries\":\"Super Mario Bros.\",\"character\":\"Mario\",\"gameSeries\":\"Super Mario\",\"head\":\"00000000\",\"image\":\"https://raw.githubusercontent.com/N3evin/AmiiboAPI/master/images/icon_00000000-00340102.png\",\"name\":\"Mario\",\"release\":{\"au\":\"2015-03-21\",\"eu\":\"2015-03-20\",\"jp\":\"2015-03-12\",\"na\":\"2015-03-20\"},\"tail\":\"00340102\",\"type\":\"Figure\"}]}" diff --git a/Tests/Helpers/Models/TestModel.swift b/Tests/Helpers/Models/TestModel.swift index c05a0f7..b13bfe3 100644 --- a/Tests/Helpers/Models/TestModel.swift +++ b/Tests/Helpers/Models/TestModel.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Foundation struct TestModel: Decodable { diff --git a/Tests/Services/AmiiboServiceTests.swift b/Tests/Services/AmiiboServiceTests.swift index af7ef82..0d781cd 100644 --- a/Tests/Services/AmiiboServiceTests.swift +++ b/Tests/Services/AmiiboServiceTests.swift @@ -1,3 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the AmiiboService open source project +// +// Copyright (c) 2023 Röck+Cöde VoF. and the AmiiboService project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of AmiiboService project authors +// +//===----------------------------------------------------------------------===// + import Communications import Foundation import XCTest