Renamed the LocationsService service and LocationsClient client in the Remote library as RemoteService and RemoteClient respectively.

This commit is contained in:
Javier Cicchelli 2023-04-11 23:50:30 +02:00
parent b73a8e1010
commit 83ed85b755
6 changed files with 15 additions and 11 deletions

View File

@ -8,14 +8,18 @@
import UIKit import UIKit
/// This class is responsible for populating the window of an application.
public class WindowRouter: Router { public class WindowRouter: Router {
// MARK: Properties // MARK: Properties
/// The window to set manually with a `UIViewController` view controller instance.
private let window: UIWindow? private let window: UIWindow?
// MARK: Initialisers // MARK: Initialisers
/// Initialise this router.
/// - Parameter window: A `UIWindow` window instance to be set manually.
public init(window: UIWindow?) { public init(window: UIWindow?) {
self.window = window self.window = window
} }

View File

@ -1,6 +1,6 @@
// //
// LocationsClient.swift // RemoteClient.swift
// Locations // Remote
// //
// Created by Javier Cicchelli on 10/04/2023. // Created by Javier Cicchelli on 10/04/2023.
// Copyright © 2023 Röck+Cöde. All rights reserved. // Copyright © 2023 Röck+Cöde. All rights reserved.
@ -9,7 +9,7 @@
import APICore import APICore
import Foundation import Foundation
struct LocationsClient { struct RemoteClient {
// MARK: Properties // MARK: Properties
@ -27,7 +27,7 @@ struct LocationsClient {
// MARK: - Client // MARK: - Client
extension LocationsClient: Client { extension RemoteClient: Client {
// MARK: Functions // MARK: Functions

View File

@ -1,6 +1,6 @@
// //
// GetLocationsEndpoint.swift // GetLocationsEndpoint.swift
// Locations // Remote
// //
// Created by Javier Cicchelli on 10/04/2023. // Created by Javier Cicchelli on 10/04/2023.
// Copyright © 2023 Röck+Cöde. All rights reserved. // Copyright © 2023 Röck+Cöde. All rights reserved.

View File

@ -1,6 +1,6 @@
// //
// String+Constants.swift // String+Constants.swift
// Locations // Remote
// //
// Created by Javier Cicchelli on 10/04/2023. // Created by Javier Cicchelli on 10/04/2023.
// Copyright © 2023 Röck+Cöde. All rights reserved. // Copyright © 2023 Röck+Cöde. All rights reserved.

View File

@ -1,6 +1,6 @@
// //
// Location.swift // Location.swift
// Locations (Library) // Remote
// //
// Created by Javier Cicchelli on 10/04/2023. // Created by Javier Cicchelli on 10/04/2023.
// Copyright © 2023 Röck+Cöde. All rights reserved. // Copyright © 2023 Röck+Cöde. All rights reserved.

View File

@ -1,6 +1,6 @@
// //
// LocationsService.swift // RemoteService.swift
// Locations // Remote
// //
// Created by Javier Cicchelli on 10/04/2023. // Created by Javier Cicchelli on 10/04/2023.
// Copyright © 2023 Röck+Cöde. All rights reserved. // Copyright © 2023 Röck+Cöde. All rights reserved.
@ -9,7 +9,7 @@
import APICore import APICore
import Foundation import Foundation
public struct LocationsService { public struct RemoteService {
// MARK: Properties // MARK: Properties
@ -18,7 +18,7 @@ public struct LocationsService {
// MARK: Initialisers // MARK: Initialisers
public init(configuration: URLSessionConfiguration = .default) { public init(configuration: URLSessionConfiguration = .default) {
self.client = LocationsClient(configuration: configuration) self.client = RemoteClient(configuration: configuration)
} }
// MARK: Functions // MARK: Functions