10#ifndef ZEP_CONTROL_ROOM_GROUP_LIST_HPP
11#define ZEP_CONTROL_ROOM_GROUP_LIST_HPP
39 const std::string& name,.
40 const std::string& nickname)
noexcept {
49 std::uint32_t GetId() const noexcept {
return id_; }
56 void SetId(std::uint32_t
id)
noexcept { id_ = id; }
61 std::string
GetName() const noexcept {
return name_; }
68 void SetName(
const std::string& name)
noexcept { name_ = name; }
73 std::string
GetNickname() const noexcept {
return nickname_; }
80 void SetNickname(
const std::string& nickname)
noexcept { nickname_ = nickname; }
90 return id_ == other.id_ &&
91 name_ == other.name_ &&
92 nickname_ == other.nickname_;
103 return ! (*
this == other);
110 std::uint32_t id_ = 0;
116 std::string nickname_;
133 RoomGroupList() noexcept {}
138 std::vector<RoomGroupEntry> GetRoomGroups() const noexcept {
return room_groups_; }
146 void SetRoomGroup(RoomGroupEntry& room_group)
noexcept {
147 room_groups_.push_back(room_group);
153 std::uint32_t GetSelectedId() const noexcept {
return selected_id_; }
160 void SetSelectedId(std::uint32_t
id)
noexcept { selected_id_ = id; }
166 std::vector<RoomGroupEntry> room_groups_;
171 std::uint32_t selected_id_;
Room group format.
Definition RoomGroupList.hpp:22
RoomGroupEntry() noexcept
Construct a RoomGroupEntry object by default.
Definition RoomGroupList.hpp:28
void SetName(const std::string &name) noexcept
ルームグループのネームを設定する。
Definition RoomGroupList.hpp:68
void SetId(std::uint32_t id) noexcept
ルームグループのIDを設定する。
Definition RoomGroupList.hpp:56
void SetNickname(const std::string &nickname) noexcept
ルームグループのニックネームを設定する。
Definition RoomGroupList.hpp:80
RoomGroupEntry(const std::uint32_t id,. const std::string &name,. const std::string &nickname) noexcept
Construct a RoomGroupEntry object with initial values.
Definition RoomGroupList.hpp:38
void SetNickname(const std::string &nickname) noexcept
Set the nickname of the room group.
Definition RoomGroupList.hpp:80
bool operator==(const RoomGroupEntry &other) const noexcept
Compare equality between room groups.
Definition RoomGroupList.hpp:89
std::string GetNickname() const noexcept
Get the nickname of the room group.
Definition RoomGroupList.hpp:73
std::string GetName() const noexcept
Get the name of the room group.
Definition RoomGroupList.hpp:61
bool operator!=(const RoomGroupEntry &other) const noexcept
Non-equivalent comparison between room groups.
Definition RoomGroupList.hpp:102
void SetName(const std::string &name) noexcept
Set the name of the room group.
Definition RoomGroupList.hpp:68
void SetId(std::uint32_t id) noexcept
Set the ID of the room group.
Definition RoomGroupList.hpp:56
Namespace for ZEP SDK.
Definition FactoryInterface.hpp:19