public async Task SetTypeAsync(ConcertHallRoomType type) { // Don't have to change if this is already the current type. if (Type == type) { return; } await SetConcertHallRoomAsync(type); Type = type; ChangedEvent?.AsyncSafeInvoke(this, EventArgs.Empty); }
private async Task SetConcertHallRoomAsync(ConcertHallRoomType type) { await _parrotClient.SendMessageAsync(new ParrotMessage(ResourceType.ConcertHallRoomSet, type.ToString().ToLower())); }