Aurora.Services.WebAPIHandler.RemoveGroupAsNewsSource C# (CSharp) Метод

RemoveGroupAsNewsSource() приватный Метод

private RemoveGroupAsNewsSource ( string cmd ) : void
cmd string
Результат void
        private void RemoveGroupAsNewsSource(string[] cmd)
        {
            string name = MainConsole.Instance.Prompt("Name of group");
            GroupRecord group = Aurora.DataManager.DataManager.RequestPlugin<IGroupsServiceConnector>().GetGroupRecord(AdminAgentID, UUID.Zero, name);
            if (group == null)
            {
                MainConsole.Instance.Warn(string.Format("[WebAPI] \"{0}\" did not appear to be a Group, cannot remove as news source", name));
                return;
            }
            IGenericsConnector generics = Aurora.DataManager.DataManager.RequestPlugin<IGenericsConnector>();
            generics.RemoveGeneric(group.GroupID, "Group", "WebUI_newsSource");
            MainConsole.Instance.Warn(string.Format("[WebAPI]: \"{0}\" was removed as a news source", group.GroupName));
        }