Beispiel #1
0
        private void UpdateMessageRx(MsgUpdateAdminStatus message)
        {
            _availableCommands.Clear();
            _availableCommands.UnionWith(message.AvailableCommands);
            Logger.DebugS("admin", $"Have {message.AvailableCommands.Length} commands available");

            _adminData = message.Admin;
            if (_adminData != null)
            {
                var flagsText = string.Join("|", AdminFlagsHelper.FlagsToNames(_adminData.Flags));
                Logger.InfoS("admin", $"Updated admin status: {_adminData.Active}/{_adminData.Title}/{flagsText}");
            }
            else
            {
                Logger.InfoS("admin", "Updated admin status: Not admin");
            }

            AdminStatusUpdated?.Invoke();
            ConGroupUpdated?.Invoke();
        }
 private void GroupUpdated()
 {
     ConGroupUpdated?.Invoke();
 }
Beispiel #3
0
        /// <summary>
        /// Update client console group data with message from the server.
        /// </summary>
        /// <param name="msg">Server message listing what commands this client can use.</param>
        private void _onConGroupUpdate(MsgConGroupUpdate msg)
        {
            _clientConGroup = msg.ClientConGroup;

            ConGroupUpdated?.Invoke();
        }