diff options
author | Dennis Kobert <d-kobert@web.de> | 2019-06-12 21:47:51 +0200 |
---|---|---|
committer | Dennis Kobert <d-kobert@web.de> | 2019-06-12 21:47:51 +0200 |
commit | 304437b834e8c87687f68333ae67a13ee1377a73 (patch) | |
tree | 51dd246568e8a159627d9cb92e99890adb5cbef8 /dsa/DSALib/Models/Network | |
parent | 2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (diff) |
Adjust Codestyle
Diffstat (limited to 'dsa/DSALib/Models/Network')
-rw-r--r-- | dsa/DSALib/Models/Network/Command.cs | 6 | ||||
-rw-r--r-- | dsa/DSALib/Models/Network/CommandResponse.cs | 15 |
2 files changed, 7 insertions, 14 deletions
diff --git a/dsa/DSALib/Models/Network/Command.cs b/dsa/DSALib/Models/Network/Command.cs index 5a97e88..1b54e84 100644 --- a/dsa/DSALib/Models/Network/Command.cs +++ b/dsa/DSALib/Models/Network/Command.cs @@ -1,10 +1,8 @@ using System.Collections.Generic; using System.Linq; -namespace DSALib.Models.Network -{ - public class Command - { +namespace DSALib.Models.Network { + public class Command { public ulong GroupId { get; set; } = 0; public ulong CharId { get; set; } public string Name { get; set; } diff --git a/dsa/DSALib/Models/Network/CommandResponse.cs b/dsa/DSALib/Models/Network/CommandResponse.cs index 0816e4a..02ae99b 100644 --- a/dsa/DSALib/Models/Network/CommandResponse.cs +++ b/dsa/DSALib/Models/Network/CommandResponse.cs @@ -1,11 +1,8 @@ using System; -namespace DSALib.Models.Network -{ - public class CommandResponse - { - public CommandResponse(string message, ResponseType responseType = ResponseType.Broadcast) - { +namespace DSALib.Models.Network { + public class CommandResponse { + public CommandResponse(string message, ResponseType responseType = ResponseType.Broadcast) { this.message = message ?? throw new ArgumentNullException(nameof(message)); ResponseType = responseType; } @@ -13,14 +10,12 @@ namespace DSALib.Models.Network public string message { get; } public ResponseType ResponseType { get; } - public override string ToString() - { + public override string ToString() { return message; } } - public enum ResponseType - { + public enum ResponseType { Broadcast, Caller, Error |