Last change
on this file since 402 was 402, checked in by alloc, 22 months ago |
- Major refactoring
- Using Utf8Json for (de)serialization
- Moving APIs to REST
- Removing dependencies from WebServer and MapRenderer to ServerFixes
|
File size:
699 bytes
|
Rev | Line | |
---|
[391] | 1 | using System.Collections.Generic;
|
---|
| 2 | using JetBrains.Annotations;
|
---|
| 3 |
|
---|
| 4 | namespace Webserver.Commands {
|
---|
| 5 | [UsedImplicitly]
|
---|
| 6 | public class EnableOpenIDDebug : ConsoleCmdAbstract {
|
---|
| 7 | public override string GetDescription () {
|
---|
| 8 | return "enable/disable OpenID debugging";
|
---|
| 9 | }
|
---|
| 10 |
|
---|
| 11 | public override string[] GetCommands () {
|
---|
| 12 | return new[] {"openiddebug"};
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
|
---|
| 16 | if (_params.Count != 1) {
|
---|
[402] | 17 | SdtdConsole.Instance.Output ($"Current state: {OpenID.debugOpenId}");
|
---|
[391] | 18 | return;
|
---|
| 19 | }
|
---|
| 20 |
|
---|
| 21 | OpenID.debugOpenId = _params [0].Equals ("1");
|
---|
[402] | 22 | SdtdConsole.Instance.Output ($"Set OpenID debugging to {_params [0].Equals ("1")}");
|
---|
[391] | 23 | }
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.