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

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

private AddGroupAsNewsSource ( string cmd ) : void
cmd string
Результат void
        private void AddGroupAsNewsSource(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("[WebAPI] You must create the group before adding it as a news source");
                return;
            }
            IGenericsConnector generics = Aurora.DataManager.DataManager.RequestPlugin<IGenericsConnector>();
            OSDMap useValue = new OSDMap();
            useValue["Use"] = OSD.FromBoolean(true);
            generics.AddGeneric(group.GroupID, "Group", "WebAPI_newsSource", useValue);
            MainConsole.Instance.Warn(string.Format("[WebAPI]: \"{0}\" was added as a news source", group.GroupName));
        }