Finished UserAccount Class
This commit is contained in:
parent
79426a2ce2
commit
e6a751db31
@ -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;} }
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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