Skip to content

Commit f3a9fbc

Browse files
committedJan 17, 2021
Sync final changes
oops
1 parent 11638ac commit f3a9fbc

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
 

‎SysBot.Base/Connection/Console/IConsoleBotConfig.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ public interface IConsoleBotConnector<out TSync, out TAsync>
4040
/// </summary>
4141
public interface IConsoleBotManaged<out TSync, out TAsync> : IConsoleBotConfig, IConsoleBotConnector<TSync, TAsync>
4242
{
43-
IConsoleBotConfig GetConfig();
43+
IConsoleBotConfig GetInnerConfig();
4444
}
4545
}

‎SysBot.Base/Connection/Switch/SwitchConnectionConfig.cs

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public record SwitchConnectionConfig : ISwitchConnectionConfig, IWirelessConnect
3737
_ => false,
3838
};
3939

40+
public IConsoleBotConfig GetInnerConfig() => this;
41+
4042
public override string ToString() => Protocol switch
4143
{
4244
WiFi => IP,

‎SysBot.Base/Control/BotState.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public abstract class BotState<TEnum, TConnection> : IConsoleBotManaged<IConsole
1818
/// <summary>
1919
/// Connection Configuration
2020
/// </summary>
21-
public IConsoleBotConfig GetConfig() => Connection;
21+
public IConsoleBotConfig GetInnerConfig() => Connection;
2222

2323
/// <inheritdoc/>
2424
public bool IsValid() => Connection.IsValid();

0 commit comments

Comments
 (0)