diff --git a/Apps/Locations/Libraries/Sources/Core/Routers/WindowRouter.swift b/Apps/Locations/Libraries/Sources/Core/Routers/WindowRouter.swift index 6cbe31b..332ffac 100644 --- a/Apps/Locations/Libraries/Sources/Core/Routers/WindowRouter.swift +++ b/Apps/Locations/Libraries/Sources/Core/Routers/WindowRouter.swift @@ -8,14 +8,18 @@ import UIKit +/// This class is responsible for populating the window of an application. public class WindowRouter: Router { // MARK: Properties + /// The window to set manually with a `UIViewController` view controller instance. private let window: UIWindow? // MARK: Initialisers + /// Initialise this router. + /// - Parameter window: A `UIWindow` window instance to be set manually. public init(window: UIWindow?) { self.window = window } diff --git a/Apps/Locations/Libraries/Sources/Remote/Clients/LocationsClient.swift b/Apps/Locations/Libraries/Sources/Remote/Clients/RemoteClient.swift similarity index 93% rename from Apps/Locations/Libraries/Sources/Remote/Clients/LocationsClient.swift rename to Apps/Locations/Libraries/Sources/Remote/Clients/RemoteClient.swift index 9ed37f2..cdb996c 100644 --- a/Apps/Locations/Libraries/Sources/Remote/Clients/LocationsClient.swift +++ b/Apps/Locations/Libraries/Sources/Remote/Clients/RemoteClient.swift @@ -1,6 +1,6 @@ // -// LocationsClient.swift -// Locations +// RemoteClient.swift +// Remote // // Created by Javier Cicchelli on 10/04/2023. // Copyright © 2023 Röck+Cöde. All rights reserved. @@ -9,7 +9,7 @@ import APICore import Foundation -struct LocationsClient { +struct RemoteClient { // MARK: Properties @@ -27,7 +27,7 @@ struct LocationsClient { // MARK: - Client -extension LocationsClient: Client { +extension RemoteClient: Client { // MARK: Functions diff --git a/Apps/Locations/Libraries/Sources/Remote/Endpoints/GetLocationsEndpoint.swift b/Apps/Locations/Libraries/Sources/Remote/Endpoints/GetLocationsEndpoint.swift index 1755734..3d58fa8 100644 --- a/Apps/Locations/Libraries/Sources/Remote/Endpoints/GetLocationsEndpoint.swift +++ b/Apps/Locations/Libraries/Sources/Remote/Endpoints/GetLocationsEndpoint.swift @@ -1,6 +1,6 @@ // // GetLocationsEndpoint.swift -// Locations +// Remote // // Created by Javier Cicchelli on 10/04/2023. // Copyright © 2023 Röck+Cöde. All rights reserved. diff --git a/Apps/Locations/Libraries/Sources/Remote/Extensions/String+Constants.swift b/Apps/Locations/Libraries/Sources/Remote/Extensions/String+Constants.swift index 3eff3f9..a839fa5 100644 --- a/Apps/Locations/Libraries/Sources/Remote/Extensions/String+Constants.swift +++ b/Apps/Locations/Libraries/Sources/Remote/Extensions/String+Constants.swift @@ -1,6 +1,6 @@ // // String+Constants.swift -// Locations +// Remote // // Created by Javier Cicchelli on 10/04/2023. // Copyright © 2023 Röck+Cöde. All rights reserved. diff --git a/Apps/Locations/Libraries/Sources/Remote/Models/Location.swift b/Apps/Locations/Libraries/Sources/Remote/Models/Location.swift index 52567a0..0342f96 100644 --- a/Apps/Locations/Libraries/Sources/Remote/Models/Location.swift +++ b/Apps/Locations/Libraries/Sources/Remote/Models/Location.swift @@ -1,6 +1,6 @@ // // Location.swift -// Locations (Library) +// Remote // // Created by Javier Cicchelli on 10/04/2023. // Copyright © 2023 Röck+Cöde. All rights reserved. diff --git a/Apps/Locations/Libraries/Sources/Remote/Services/LocationsService.swift b/Apps/Locations/Libraries/Sources/Remote/Services/RemoteService.swift similarity index 82% rename from Apps/Locations/Libraries/Sources/Remote/Services/LocationsService.swift rename to Apps/Locations/Libraries/Sources/Remote/Services/RemoteService.swift index 2e102ab..b9bca95 100644 --- a/Apps/Locations/Libraries/Sources/Remote/Services/LocationsService.swift +++ b/Apps/Locations/Libraries/Sources/Remote/Services/RemoteService.swift @@ -1,6 +1,6 @@ // -// LocationsService.swift -// Locations +// RemoteService.swift +// Remote // // Created by Javier Cicchelli on 10/04/2023. // Copyright © 2023 Röck+Cöde. All rights reserved. @@ -9,7 +9,7 @@ import APICore import Foundation -public struct LocationsService { +public struct RemoteService { // MARK: Properties @@ -18,7 +18,7 @@ public struct LocationsService { // MARK: Initialisers public init(configuration: URLSessionConfiguration = .default) { - self.client = LocationsClient(configuration: configuration) + self.client = RemoteClient(configuration: configuration) } // MARK: Functions