GRUser

class GRUser

Undocumented

  • id

    Undocumented

    Declaration

    Swift

    var id : String?
  • Undocumented

    Declaration

    Swift

    var name : String?
  • Undocumented

    Declaration

    Swift

    var imgUrl : String?
  • Undocumented

    Declaration

    Swift

    var gender : String?
  • Undocumented

    Declaration

    Swift

    var avgRating : Double?
  • Undocumented

    Declaration

    Swift

    var ratingCount : Int?
  • Undocumented

    Declaration

    Swift

    var status : Int?
  • Undocumented

    Declaration

    Swift

    var fbId : String?
  • Undocumented

    Declaration

    Swift

    var phone : String?
  • Undocumented

    Declaration

    Swift

    var isFBFriend : Bool = false
  • Undocumented

    Declaration

    Swift

    var rank = 1
  • Undocumented

    Declaration

    Swift

    var countryCode : String?
  • Undocumented

    Declaration

    Swift

    var image : UIImage?
  • save the attribute wise rating of the user

    Declaration

    Swift

    var attributesRating = [String:GRAttributeWithRating]()
  • Undocumented

    Declaration

    Swift

    static var currentUser : GRUser?
  • Undocumented

    Declaration

    Swift

    var observers = [() -> Void]()
  • Undocumented

    Declaration

    Swift

    var infoListener : ListenerRegistration?
  • Undocumented

    Declaration

    Swift

    var attributeListener : ListenerRegistration?
  • Undocumented

    Declaration

    Swift

    init(id : String? , name : String?, imgUrl : String?, gender : String?, avgRating :Double, ratingCount: Int, status : Int)
  • Undocumented

    Declaration

    Swift

    func desc()
  • Undocumented

    Declaration

    Swift

    func loadImage(index : Int, complete : @escaping ( Int, UIImage?) -> Void)
  • Undocumented

    Declaration

    Swift

    func loadAttributes(complete :@escaping () -> Void)
  • Undocumented

    Declaration

    Swift

    func observerAttributes(callback :@escaping () -> Void)
  • Undocumented

    Declaration

    Swift

    func observerInfo(callback :@escaping () -> Void)
  • Undocumented

    Declaration

    Swift

    func removeAllObserver()
  • Undocumented

    Declaration

    Swift

    static func getUserBy(uid : String, index : Int, complete : @escaping (_ user : GRUser?, _ index: Int) -> Void)
  • Undocumented

    Declaration

    Swift

    static func getUserBy(phoneNum : String, index : Int, complete : @escaping (_ user : GRUser?, _ index: Int) -> Void)
  • Undocumented

    Declaration

    Swift

    static func getUserBy(fbId : String, index : Int, complete : @escaping (_ user : GRUser?, _ index: Int) -> Void)
  • when new user registered

    Declaration

    Swift

    static func registerUserInfoInFirebase(complete : @escaping (_ errorDesc : String?) -> Void)
  • when user rating changed

    Declaration

    Swift

    func updateUserRatingInFirebase(toUser : GRUser, complete : @escaping (_ errorDesc : String?) -> Void)
  • Undocumented

    Declaration

    Swift

    static func login(complete : @escaping (_ errorDesc : String?) -> Void)
  • Undocumented

    Declaration

    Swift

    static func uploadImg(uid : String, img : UIImage, complete : @escaping (_ url : String?) -> Void)
  • Undocumented

    Declaration

    Swift

    static func register(uid : String, name : String? , gender : String? , countryCode: String, image : UIImage, complete : @escaping (_ errorDesc : String?) -> Void)
  • Undocumented

    Declaration

    Swift

    func updateAllInfo(complete : @escaping (_ errorDesc : String?) -> Void)
  • Undocumented

    Declaration

    Swift

    func updateRatingInfo(complete : @escaping (_ errorDesc : String?) -> Void)
  • Undocumented

    Declaration

    Swift

    static func getUserId(byPhoneNum : String, complete : @escaping (_ uid : String?)  -> Void)