ToString overrides

This commit is contained in:
2024-01-17 23:12:51 +01:00
parent c333adb2e4
commit 907089abe1
4 changed files with 20 additions and 12 deletions

View File

@ -14,4 +14,11 @@ public abstract class HttpShocker : Shocker
Endpoint = endpoint;
ApiKey = apiKey;
}
public override string ToString()
{
return $"{base.ToString()}\n" +
$"Endpoint: {Endpoint}\n" +
$"ApiKey: {ApiKey}";
}
}

View File

@ -41,4 +41,12 @@ public abstract class Shocker
{
this.Logger = logger;
}
public override string ToString()
{
return $"ShockerType: {Enum.GetName(typeof(ShockerApi), this.ApiType)}\n" +
$"Shocker-IDs: {string.Join(", ", this.ShockerIds)}\n" +
$"IntensityRange: {IntensityRange}\n" +
$"DurationRange: {DurationRange}";
}
}