From f68bb1864b40c69d12b44db5aa33125aef39e150 Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Sat, 17 Mar 2018 15:33:00 +0100 Subject: Restructuring --- .../Models/UserInfoClearText.cs | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 DistributedPasswordCracker.Client/Models/UserInfoClearText.cs (limited to 'DistributedPasswordCracker.Client/Models/UserInfoClearText.cs') diff --git a/DistributedPasswordCracker.Client/Models/UserInfoClearText.cs b/DistributedPasswordCracker.Client/Models/UserInfoClearText.cs new file mode 100644 index 0000000..e83b29c --- /dev/null +++ b/DistributedPasswordCracker.Client/Models/UserInfoClearText.cs @@ -0,0 +1,32 @@ +using System; + +namespace DistributedPasswordCracker.Client.Models +{ + /// + /// Username + password in clear text (that is human readable) + /// + public class UserInfoClearText + { + public String UserName { get; set; } + public String Password { get; set; } + + public UserInfoClearText(string username, string password) + { + if (username == null) + { + throw new ArgumentNullException("username"); + } + if (password == null) + { + throw new ArgumentNullException("password"); + } + UserName = username; + Password = password; + } + + public override string ToString() + { + return UserName + ": " + Password; + } + } +} \ No newline at end of file -- cgit v1.2.3