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.Threading.Tasks;
namespace main
namespace TeamHobby.HobbyProjectGenerator.UserManagement
{
public class UserAccount
{
/* private string username;
private string password;
private string role;
// Admin Credentials
private string UserName;
private string Password;
private DateTime Time;
public UserAccount(string un,string pwd,string rol)
public UserAccount(string un, string pwd, DateTime TimeStamp)
{
username = un;
password = pwd;
role = rol;
UserName = un;
Password = pwd;
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";
role = "Regular";
newusername = newUN;
newpassword = newPWD;
newemail = Email;
newtime = newTime;
}
public void newUser()
{
}*/
public string NewUserName { get { return newusername; } }
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
{
}
}