-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes the connection data used to connect to SimHub configurable.
Issue #157
- Loading branch information
1 parent
9707e69
commit cd00ea0
Showing
4 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (C) 2024 Martin Renner | ||
// LGPL-3.0-or-later (see file COPYING and COPYING.LESSER) | ||
|
||
namespace StreamDeckSimHub.Plugin.SimHub; | ||
|
||
/// <summary> | ||
/// Settings used to connect to SimHub. | ||
/// </summary> | ||
public class ConnectionSettings | ||
{ | ||
public string Host { get; set; } = "127.0.0.1"; | ||
public int Port { get; set; } = 18082; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,9 @@ | |
"writeTo": "file" | ||
} | ||
] | ||
}, | ||
"SimHubConnection": { | ||
"Host": "127.0.0.1", | ||
"Port": "18082" | ||
} | ||
} |