public void SendToAllWhoHaveOwnerRights(ServerMessage message) { CachedServerMessage data = new CachedServerMessage(message); foreach (RoomUnitUser user in this.RoomUserManager.GetRealUsers()) { if (user.Session != null) { if (this.HaveOwnerRights(user.Session)) { user.Session.SendMessage(data); } } } }
public void SendToAllRespectIgnores(ServerMessage message, uint senderId) { CachedServerMessage data = new CachedServerMessage(message); foreach (RoomUnitUser user in this.RoomUserManager.GetRealUsers()) { if (user.Session.GetHabbo() != null) { if (!user.Session.GetHabbo().IgnoredUsers.Contains(senderId)) { user.Session.SendMessage(data); } } } }
public void SendToAll(ServerMessage message, List <uint> ignoreList = null) { CachedServerMessage data = new CachedServerMessage(message); foreach (RoomUnitUser user in this.RoomUserManager.GetRealUsers()) { if (user.Session.GetHabbo() != null) { if (ignoreList == null || !ignoreList.Contains(user.Session.GetHabbo().ID)) { user.Session.SendMessage(data); } } } }
public WrappedServerMessage(CachedServerMessage single) { this.single = single; }
public WrappedServerMessage(ServerMessage single) { this.single = new CachedServerMessage(single); }