Finished UserAccount Class

This commit is contained in:
Im_Alpha 2021-12-12 02:26:21 -08:00
parent 79426a2ce2
commit e6a751db31
2 changed files with 25 additions and 29 deletions

View File

@ -4,31 +4,39 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace main namespace TeamHobby.HobbyProjectGenerator.UserManagement
{ {
public class UserAccount public class UserAccount
{ {
/* private string username; // Admin Credentials
private string password; private string UserName;
private string role; private string Password;
private DateTime Time;
public UserAccount(string un,string pwd,string rol) public UserAccount(string un, string pwd, DateTime TimeStamp)
{ {
username = un; UserName = un;
password = pwd; Password = pwd;
role = rol; Time = TimeStamp;
} }
public string username { get { return UserName; } }
public string password { get { return Password; } }
public void UserAccount() // New User Credentials
private string newusername;
private string newpassword;
private string newemail;
private DateTime newtime;
public void NewUser(string newUN, string newPWD, string Email, DateTime newTime)
{ {
password = "1234"; newusername = newUN;
role = "Regular"; newpassword = newPWD;
newemail = Email;
newtime = newTime;
} }
public string NewUserName { get { return newusername; } }
public void newUser() public string NewPassword { get { return newpassword; } }
{ public string NewEmail { get { return newemail; } }
public DateTime Newtime { get { return newtime;} }
}*/
} }
} }

View File

@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TeamHobby.HobbyProjectGenerator.Contracts
{
internal interface IDataSource
{
}
}