Noobish1/WeatherRules

View on GitHub
App/Models/WhatToWearModels/Objects/Parameters/AppLookupParameters.swift

Summary

Maintainability
A
0 mins
Test Coverage
import CoreLocation
import Foundation
import KeyedAPIParameters

// MARK: AppLookupParamters
public struct AppLookupParameters: Equatable, Hashable, Codable {
    // MARK: properties
    internal let appID: String

    // MARK: init
    public init(appID: String) {
        self.appID = appID
    }
}

// MARK: KeyedAPIParameters
extension AppLookupParameters: KeyedAPIParameters {
    public enum Key: String, ParamJSONKey {
        case appID = "id"
    }

    public func toKeyedDictionary() -> [Key: APIParamConvertible] {
        return [.appID: appID]
    }
}