Overte C++ Documentation
GroupRank.h
1 //
2 // GroupRank.h
3 // libraries/networking/src/
4 //
5 // Created by Seth Alves on 2016-7-21.
6 // Copyright 2016 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 #ifndef hifi_GroupRank_h
13 #define hifi_GroupRank_h
14 
15 class GroupRank {
16 public:
17  GroupRank() {}
18  GroupRank(QUuid id, unsigned int order, QString name, unsigned int membersCount) :
19  id(id), order(order), name(name), membersCount(membersCount) {}
20 
21  QUuid id;
22  int order { -1 };
23  QString name;
24  int membersCount { -1 };
25 };
26 
27 inline bool operator==(const GroupRank& lhs, const GroupRank& rhs) {
28  return
29  lhs.id == rhs.id &&
30  lhs.order == rhs.order &&
31  lhs.name == rhs.name &&
32  lhs.membersCount == rhs.membersCount;
33 }
34 inline bool operator!=(const GroupRank& lhs, const GroupRank& rhs) { return !(lhs == rhs); }
35 
36 #endif // hifi_GroupRank_h