 //
 
 import Foundation
+import SwiftHTTP
 import SwifterSwift
-
-public class RatingsSDK {
+import GBDeviceInfo
+
+public class RatingsSDK { // TODO: Remove
     public class func hello(){
         debugPrint("Hello from RatingsSDK!")
     }
 }
 
 enum RatingError: Error {
-    case validationError(message: String)
+    case validation(message: String)
 }
 
 public class Rating {

    let platform: String
    let range: String
    let token: String
    
    var _user: [String: String]?
    
    // MARK: - Public properties
    
    public var user: [String: String]? {
        get {
            return _user
        }
    }
    
    // MARK: - Validations
    
    func validateUrl(_ url: String) {
        guard url.isValidUrl else {
             fatalError("invalid url")

        self.platform = platform.trimmed
        self.range = range.trimmed
        self.token = token.trimmed
        self.deviceInfo = GBDeviceInfo()
        
        validateUrl(self.url)
        validateKey(self.app, description: "app")
