GRRatingManager
class GRRatingManager
Undocumented
-
Undocumented
Declaration
Swift
static var shared = GRRatingManager()
-
- entity could be any thing, user, place, company etc
Declaration
Swift
var attributesRatingToOtherEntities = [String : (lastUpdateTimestamp: Double, attributeRating : [String:GRAttributeWithRating])]()
-
get the attributed rating by the user to the given entity
Declaration
Swift
func getMeToOthersRating(entityId : String, complete : @escaping (_ attributes : (lastUpdateTimestamp: Double, attributeRating : [String:GRAttributeWithRating])?) -> Void)
-
- Set attribute level rating of individual place
- Only for public places
Declaration
Swift
func setMeToOthersRating(place : GRPlace, attributesRating : [String:GRAttributeWithRating], complete : @escaping (_ errorDesc : String?) -> Void)
-
set attribute level rating of individual
Declaration
Swift
func setEntityRating(toUser : GRUser, yourNewRatingToOther : [String:GRAttributeWithRating], yourOldRatingToOther : [String:GRAttributeWithRating]?, complete : @escaping (_ errorDesc : String?) -> Void)
-
Its only for private users
Declaration
Swift
func giveMeToOthersRating(toUser : GRUser, yourNewRatingToOther : [String:GRAttributeWithRating], yourOldRatingToOther : [String:GRAttributeWithRating]?, complete : @escaping (_ errorDesc : String?) -> Void)