 import Foundation
 import Moya
 
-enum Leds: Int {
+enum Led: Int {
     case Off
     case Yellow
     case Green

        case .led(_, _):
            return "/led"
        case .off:
            return "cmd/\(Leds.Off.rawValue)"
        case .yellow:
            return "cmd/\(Leds.Yellow.rawValue)"
        case .green:
            return "cmd/\(Leds.Green.rawValue)"
        }
    }
    var method: Moya.Method {
        switch self {
        case .zen, .led, .yellow, .green, .off:
            return .get
        }
    }
    var parameters: [String: Any]? {
        switch self {
        case .zen, .yellow, .green, .off:

    case yellow
    case green
    case off
    case led(type: Led, isOn: Bool)
}

// MARK: - TargetType Protocol Implementation
extension MyService: TargetType {
    var baseURL: URL { return URL(string: "http://10.230.192.100")! }
    
    var path: String {
        switch self {
        case .zen:
