Skip to content

Commit

Permalink
Renamed all classes and files. Updated docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjjaren committed Sep 21, 2018
1 parent 4e7239f commit 0262b67
Show file tree
Hide file tree
Showing 138 changed files with 1,143 additions and 4,369 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2018 HamblinSoft <jjjjaren@gmail.com>
Copyright (c) 2018 HamblinSoft <Jaren.Hamblin@HamblinSoft.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 0 additions & 4 deletions Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions Source/Classes/TeslaAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,6 @@ open class TeslaAPI {
response = CommandResponse(result: false, reason: data.error ?? data.reason ?? errorOrNil?.localizedDescription ?? "An error occurred")
return
}

completion(data)
}
}

Expand Down Expand Up @@ -352,10 +350,7 @@ open class TeslaAPI {
let logMessage = components.joined(separator: "\n")
print(logMessage)
}
}


extension TeslaAPI {

// MARK: - Convenience methods

Expand Down
2 changes: 1 addition & 1 deletion Source/Enumerations/Command.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

/// All commands that can be sent to a vehicle
public enum Command: String, EnumCollection, CustomStringConvertible {
public enum Command: String, CaseIterable, CustomStringConvertible {

/// Sets valet mode on or off with a PIN to disable it from within the car. Reuses last PIN from previous valet session. Valet Mode limits the car's top speed to 70MPH and 80kW of acceleration power. It also disables Homelink, Bluetooth and Wifi settings, and the ability to disable mobile access to the car. It also hides your favorites, home, and work locations in navigation.
case setValetMode = "set_valet_mode"
Expand Down
35 changes: 0 additions & 35 deletions Source/Protocols/EnumCollection.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Source/Protocols/Mappable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public protocol Mappable: ObjectMapper.Mappable {
}

///
public extension TKMappable {
public extension Mappable {

///
public init() {
Expand Down
12 changes: 6 additions & 6 deletions Source/Structures/VINComponent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Foundation
public struct VINComponent {

///
public enum Manufacturer: String, CustomStringConvertible, EnumCollection {
public enum Manufacturer: String, CustomStringConvertible, CaseIterable {

///
case unknown = ""
Expand All @@ -30,7 +30,7 @@ public struct VINComponent {
}

///
public enum Make: String, CustomStringConvertible, EnumCollection {
public enum Make: String, CustomStringConvertible, CaseIterable {

///
case unknown = ""
Expand Down Expand Up @@ -60,7 +60,7 @@ public struct VINComponent {
}

///
public enum BatteryType: String, CustomStringConvertible, EnumCollection {
public enum BatteryType: String, CustomStringConvertible, CaseIterable {

///
case unknown
Expand Down Expand Up @@ -90,7 +90,7 @@ public struct VINComponent {
}

///
public enum DriveUnit: String, CustomStringConvertible, EnumCollection {
public enum DriveUnit: String, CustomStringConvertible, CaseIterable {

///
case unknown
Expand Down Expand Up @@ -124,7 +124,7 @@ public struct VINComponent {
}

///
public enum ManufactureLocation: String, CustomStringConvertible, EnumCollection {
public enum ManufactureLocation: String, CustomStringConvertible, CaseIterable {

///
case unknown = ""
Expand All @@ -142,7 +142,7 @@ public struct VINComponent {
}

///
public enum ModelYear: String, EnumCollection {
public enum ModelYear: String, CaseIterable {

///
case unknown = ""
Expand Down
4 changes: 0 additions & 4 deletions TeslaKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
37857DCA2150678E00229504 /* TemperatureUnit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37FB3F3F202666FF00409472 /* TemperatureUnit.swift */; };
37857DCB2150678E00229504 /* VehicleStatus.swift in Sources */ = {isa = PBXBuildFile; fileRef = 375D887D200ECF2C00CD9D1E /* VehicleStatus.swift */; };
37857DCC2150678E00229504 /* DataResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = 375D889B200ECF2C00CD9D1E /* DataResponse.swift */; };
37857DCD2150678E00229504 /* EnumCollection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 375D889C200ECF2C00CD9D1E /* EnumCollection.swift */; };
37857DCE2150678E00229504 /* Mappable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 375D889D200ECF2C00CD9D1E /* Mappable.swift */; };
37857DCF2150678E00229504 /* AccessToken.swift in Sources */ = {isa = PBXBuildFile; fileRef = 375D8895200ECF2C00CD9D1E /* AccessToken.swift */; };
37857E1E21506A5E00229504 /* VehicleOptionTransform.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37857E1D21506A5E00229504 /* VehicleOptionTransform.swift */; };
Expand Down Expand Up @@ -137,7 +136,6 @@
375D8895200ECF2C00CD9D1E /* AccessToken.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AccessToken.swift; sourceTree = "<group>"; };
375D8898200ECF2C00CD9D1E /* TeslaAPI.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TeslaAPI.swift; sourceTree = "<group>"; };
375D889B200ECF2C00CD9D1E /* DataResponse.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DataResponse.swift; sourceTree = "<group>"; };
375D889C200ECF2C00CD9D1E /* EnumCollection.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EnumCollection.swift; sourceTree = "<group>"; };
375D889D200ECF2C00CD9D1E /* Mappable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Mappable.swift; sourceTree = "<group>"; };
37630B6220F9483500D17BD8 /* SpeedLimitSetPIN.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SpeedLimitSetPIN.swift; sourceTree = "<group>"; };
377E890E20F72539004E379A /* SpeedLimitMode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SpeedLimitMode.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -317,7 +315,6 @@
isa = PBXGroup;
children = (
375D889B200ECF2C00CD9D1E /* DataResponse.swift */,
375D889C200ECF2C00CD9D1E /* EnumCollection.swift */,
375D889D200ECF2C00CD9D1E /* Mappable.swift */,
);
path = Protocols;
Expand Down Expand Up @@ -725,7 +722,6 @@
37857DB72150670E00229504 /* VehicleConfig.swift in Sources */,
37857DC82150678E00229504 /* RangeDisplay.swift in Sources */,
37857DC52150678E00229504 /* Error.swift in Sources */,
37857DCD2150678E00229504 /* EnumCollection.swift in Sources */,
37857DB82150670E00229504 /* VehicleOption.swift in Sources */,
37857DB92150670E00229504 /* VehicleState.swift in Sources */,
37857DBA2150670E00229504 /* VIN.swift in Sources */,
Expand Down
15 changes: 2 additions & 13 deletions docs/Classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<a title="Classes Reference"></a>
<header>
<div class="content-wrapper">
<p><a href="index.html">TeslaKit Docs</a> (95% documented)</p>
<p><a href="index.html">TeslaKit Docs</a> (96% documented)</p>
</div>
</header>
<div class="content-wrapper">
Expand Down Expand Up @@ -93,23 +93,12 @@
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="Extensions.html">Extensions</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="Extensions/TKMappable.html">TKMappable</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="Protocols.html">Protocols</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="Protocols.html#/s:8TeslaKit12DataResponseP">DataResponse</a>
</li>
<li class="nav-group-task">
<a href="Protocols/EnumCollection.html">EnumCollection</a>
</li>
<li class="nav-group-task">
<a href="Protocols/Mappable.html">Mappable</a>
</li>
Expand Down Expand Up @@ -274,7 +263,7 @@ <h4>Declaration</h4>
</section>
</section>
<section id="footer">
<p>&copy; 2018 <a class="link" href="https://github.com/HamblinSoft/TeslaKit" target="_blank" rel="external">Jaren</a>. All rights reserved. (Last updated: 2018-09-17)</p>
<p>&copy; 2018 <a class="link" href="https://github.com/HamblinSoft/TeslaKit" target="_blank" rel="external">Jaren</a>. All rights reserved. (Last updated: 2018-09-21)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.1</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</article>
Expand Down
Loading

0 comments on commit 0262b67

Please sign in to comment.