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;
120 std::string nickname_;
133 RoomGroupList() noexcept {}
138 std::vector<RoomGroupEntry> GetRoomGroups() const noexcept {
return room_groups_; }
145 void SetRoomGroup(RoomGroupEntry& room_group)
noexcept {
146 room_groups_.push_back(room_group);
152 std::uint32_t GetSelectedId() const noexcept {
return selected_id_; }
159 void SetSelectedId(std::uint32_t
id)
noexcept { selected_id_ = id; }
165 std::vector<RoomGroupEntry> room_groups_;
170 std::uint32_t selected_id_;
Room group format.
Definition RoomGroupList.hpp:22
std::string GetName() const noexcept
ルームグループのネームを取得する。
Definition RoomGroupList.hpp:61
RoomGroupEntry() noexcept
RoomGroupEntry オブジェクトをデフォルト構築する。
Definition RoomGroupList.hpp:28
void SetName(const std::string &name) noexcept
ルームグループのネームを設定する。
Definition RoomGroupList.hpp:68
bool operator!=(const RoomGroupEntry &other) const noexcept
ルームグループ同士を非等値比較する
Definition RoomGroupList.hpp:102
void SetId(std::uint32_t id) noexcept
ルームグループのIDを設定する。
Definition RoomGroupList.hpp:56
void SetNickname(const std::string &nickname) noexcept
ルームグループのニックネームを設定する。
Definition RoomGroupList.hpp:80
bool operator==(const RoomGroupEntry &other) const noexcept
ルームグループ同士を等値比較する
Definition RoomGroupList.hpp:89
std::string GetNickname() const noexcept
ルームグループのニックネームを取得する。
Definition RoomGroupList.hpp:73
RoomGroupEntry(const std::uint32_t id, const std::string &name, const std::string &nickname) noexcept
RoomGroupEntry オブジェクトを初期値付きで構築する。
Definition RoomGroupList.hpp:38
std::uint32_t GetId() const noexcept
ルームグループのIDを取得する。
Definition RoomGroupList.hpp:49
Namespace for ZEP SDK.
Definition FactoryInterface.hpp:19