1/* 2 * Copyright 2013-2014, Stephan A��mus <superstippi@gmx.de>. 3 * Copyright 2016-2023, Andrew Lindesay <apl@lindesay.co.nz>. 4 * All rights reserved. Distributed under the terms of the MIT License. 5 */ 6#ifndef RATING_SUMMARY_H 7#define RATING_SUMMARY_H 8 9 10class RatingSummary { 11public: 12 RatingSummary(); 13 RatingSummary(const RatingSummary& other); 14 15 RatingSummary& operator=(const RatingSummary& other); 16 bool operator==(const RatingSummary& other) const; 17 bool operator!=(const RatingSummary& other) const; 18 19public: 20 float averageRating; 21 int ratingCount; 22 23 int ratingCountByStar[5]; 24}; 25 26 27#endif // RATING_SUMMARY_H 28