2 * Copyright (C) 2013 HERE Global B.V. All rights reserved.
3 * This software, including documentation, is protected by copyright controlled by
4 * HERE Global B.V. (“Software”). All rights are reserved. Copying, including reproducing,
5 * storing, adapting or translating, any or all of this material requires the prior
6 * written consent of HERE Global B.V. You may use this
7 * Software in accordance with the terms and conditions defined in the
8 * HERE Location Platform Services Terms and Conditions, available at
9 * http://developer.here.com/terms-conditions-base
11 * As an additional permission to the above, you may distribute Software,
12 * in object code format as part of an Application, according to, and subject to, terms and
13 * conditions defined in the Tizen Software Development kit (“SDK”) License Agreement.
14 * You may distribute such object code format Application under terms of your choice,
15 * provided that the header and source files of the Software have not been modified.
21 #include "common/HereMaps_global.h"
23 HERE_MAPS_BEGIN_NAMESPACE
26 * This class encapsulates place ratings contributed by users.
30 class EXPORT_API Ratings
35 * This method is the default constructor.
40 * This method is the copy constructor.
42 * @param rRhs An object whose contents are to be copied to the instance
45 Ratings(const Ratings& rRhs);
48 * This method is the destructor.
53 * This is the assignment operator.
55 * @param rRhs An object whose contents are to be copied to the given
58 * @return A reference to the given instance of the class after its contents
61 Ratings& operator=(const Ratings& rRhs);
64 * This method retrieves the average rating for a place.
66 * @return A value reflecting the average user rating for a place.
68 double GetAverage() const;
71 * This method retrieves a value indicating how many users have rated a place.
73 * @return A value indicating how many users have rated a place.
75 size_t GetCount() const;
78 * This method sets the average rating for a place.
80 * @param aAverage A value reflecting the average user rating for a place.
82 void SetAverage(double aAverage);
85 * This method sets a value indicating how many users have rated a place.
87 * @param aCount A value indicating how many users have rated a place.
89 void SetCount(size_t aCount);
95 friend class JsonParser;
98 HERE_MAPS_END_NAMESPACE