Finished UserAccount Class
This commit is contained in:
parent
79426a2ce2
commit
e6a751db31
@ -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;} }
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user