forked from JonasNilson/idle_master_extended
-
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.
- Loading branch information
Hidden Space
committed
Oct 18, 2024
1 parent
678ff71
commit d30dcb0
Showing
5 changed files
with
183 additions
and
188 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
namespace SteamGameTimeBooster | ||
namespace SteamGameTimeBooster; | ||
|
||
public static class EncryptionConstants | ||
{ | ||
public static class EncryptionConstants | ||
{ | ||
public const string EncryptedDataFilePath = "sgtb-session.encrypted"; | ||
} | ||
public const string EncryptedDataFilePath = "sgtb-session.encrypted"; | ||
} |
15 changes: 7 additions & 8 deletions
15
Source/SteamGameTimeBooster/DataTransferObjects/SteamSession.cs
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
namespace SteamGameTimeBooster.DataTransferObjects | ||
namespace SteamGameTimeBooster.DataTransferObjects; | ||
|
||
public sealed class SteamSession | ||
{ | ||
public sealed class SteamSession | ||
{ | ||
public string UserName { get; set; } = string.Empty; | ||
public string SessionId { get; set; } = string.Empty; | ||
public string SteamLoginSecure { get; set; } = string.Empty; | ||
public string UserName { get; set; } = string.Empty; | ||
public string SessionId { get; set; } = string.Empty; | ||
public string SteamLoginSecure { get; set; } = string.Empty; | ||
|
||
public bool SimpleValidate() => !string.IsNullOrEmpty(UserName) && !string.IsNullOrEmpty(SessionId) && !string.IsNullOrEmpty(SteamLoginSecure); | ||
} | ||
public bool SimpleValidate() => !string.IsNullOrEmpty(UserName) && !string.IsNullOrEmpty(SessionId) && !string.IsNullOrEmpty(SteamLoginSecure); | ||
} |
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 |
---|---|---|
@@ -1,19 +1,18 @@ | ||
namespace SteamGameTimeBooster.Helpers | ||
namespace SteamGameTimeBooster.Helpers; | ||
|
||
public static class ConsoleHelper | ||
{ | ||
public static class ConsoleHelper | ||
public static void WriteColored(string text, ConsoleColor color) | ||
{ | ||
public static void WriteColored(string text, ConsoleColor color) | ||
{ | ||
ConsoleColor originalColor = Console.ForegroundColor; | ||
Console.ForegroundColor = color; | ||
Console.Write(" "); | ||
Console.Write(text); | ||
Console.ForegroundColor = originalColor; | ||
} | ||
ConsoleColor originalColor = Console.ForegroundColor; | ||
Console.ForegroundColor = color; | ||
Console.Write(" "); | ||
Console.Write(text); | ||
Console.ForegroundColor = originalColor; | ||
} | ||
|
||
public static void WriteColoredLine(string text, ConsoleColor color) | ||
{ | ||
WriteColored(text + Environment.NewLine, color); | ||
} | ||
public static void WriteColoredLine(string text, ConsoleColor color) | ||
{ | ||
WriteColored(text + Environment.NewLine, color); | ||
} | ||
} |
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
Oops, something went wrong.