Skip to content

Instantly share code, notes, and snippets.

@sandeeplearner
Last active September 14, 2016 18:30
Show Gist options
  • Save sandeeplearner/51f56ef2da297a3b28b8d986e7a82bde to your computer and use it in GitHub Desktop.
Save sandeeplearner/51f56ef2da297a3b28b8d986e7a82bde to your computer and use it in GitHub Desktop.
import Foundation
import SwiftyJSON
class User {
var name : String!
var username : String!
var password : String!
var id : String!
static var loggedInUser = User()
private init(){
}
func configureUser(userInfoJson userinfo : JSON) {
username = userinfo["username"].string
name = userinfo["name"].string
password = userinfo["password"].string
id = userinfo["id"].string
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment