17 Commits

Author SHA1 Message Date
53d08bf1b6 Implemented some test cases in the AmiiboServiceTests tests. 2023-04-21 18:17:11 +02:00
a717592fa6 Defined some seeds to use in test cases in the String+Seed and the Data+Seed extensions. 2023-04-21 18:16:38 +02:00
4292885031 Implemented convenience initialisers for the GetAmiiboEndpoint, GetCharacterEndpoint, GetGameSeriesEndpoint, GetSeriesEndpoint and the GetTypeEndpoint endpoint extensions. 2023-04-21 18:15:15 +02:00
102302935f Made the Game, Release and Usage model independent from the Amiibo model. 2023-04-21 13:40:47 +02:00
7d0e0e8f64 Replaced the "showGames" and "showUsage" flags in the AmiiboFilter filter with an enumeration. 2023-04-21 13:37:59 +02:00
55f1b4824e Made the "usage" property of the Amiibo.Game model optional. 2023-04-20 01:25:54 +02:00
83950ceb6e Fixed the path property of the GetAmiiboEndpoint endpoint. 2023-04-20 01:24:23 +02:00
68d7eef203 Implemented the AmiiboService service. 2023-04-20 00:14:57 +02:00
2dbf805870 Implemented the Result model. 2023-04-20 00:14:37 +02:00
60c1bf55db Defined the Service public protocol. 2023-04-20 00:12:49 +02:00
d1de1939e4 Implemented the KeyNameFilter filter and conformed it to the Filter protocol. 2023-04-19 22:25:18 +02:00
35027dcd38 Implemented the AmiiboFilter filter and conformed it to the Filter protocol. 2023-04-19 22:25:01 +02:00
1598616ce1 Defined the Filter protocol. 2023-04-19 22:23:04 +02:00
68acf82f9d [Feature] Client (#3)
This PR contains the work done to implement the `AmiiboClient` struct that conforms to the `Client` protocol coming from the **Communications** library of the [SwiftLibs package](https://github.com/rock-n-code/swift-libs)

To provide further detailks about the work done:
- [x] added the `parameters` property to all the existing endpoints;
- [x] implemented the `AmiiboClient` client and the `AmiiboClientError` error;
- [x] implemented some static formatters in the `DateFormatter+Formatter` extension;
- [x] updated the `SwiftLibs` package to its latest version.

Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: #3
2023-04-19 14:33:48 +00:00
e12fce9ddc [Feature] All endpoints (#2)
This PR contains the work done in implementing the endpoints needed for the remote calls: `GetAmiiboEndpoint`, `GetTypeEndpoint`, `GetGameSeriesEndpoint`, `GetSeriesEndpoint`, `GetSeriesEndpoint` and `GetLastUpdatedEndpoint` endpoints definitions. Furthermore, I added the the **SwiftLibs** package as a dependency and also, I defined constants for `String+Scheme`, `String+Host` and the `String+Path` extensions.

Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: #2
2023-04-18 20:03:12 +00:00
29f766ebdb [Feature] Models of the service (#1)
This PR contains the implementation of all the models used by this service: `Amiibo`, `Amiibo.Game`, `Amiibo.Release`, `Amiibo.Usage`, `KeyName` and `LastUpdated`.

Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Reviewed-on: #1
2023-04-18 18:37:08 +00:00
472ed2c068 Initial Commit 2023-04-18 19:44:24 +02:00