 
 struct LoginModel: Codable {
     let gid:Int             // always 0
-    let social:Int
+    let social:Social
     let auth:String
     let sid:String
     let action:String       // always "login"

import UIKit
import Foundation

enum Social: Int, Decodable {
    case
        UNKNOWN       = 0,
        GOOGLE        = 1,

}

struct UserModel: Codable {
    let social:Social
    let sid:String
    let auth:String
    let given:String
