-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUser.cs
71 lines (60 loc) · 1.53 KB
/
User.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
using System;
namespace myrecipebook
{
public class User
{
protected int _id;
protected string _email;
protected string _password;
protected string _first_name;
protected string _last_name;
public User(int id, string email, string password, string first_name, string last_name)
{
this._id = id;
this._email = email;
this._password = password;
this._first_name = first_name;
this._last_name = last_name;
}
public virtual int GetID()
{
return this._id;
}
public virtual void SetID(int id)
{
this._id = id;
}
public virtual string GetEmail()
{
return this._email;
}
public virtual void SetEmail(string email)
{
this._email = email;
}
public virtual string GetPassword()
{
return this._password;
}
public virtual void SetPassword(string password)
{
this._password = password;
}
public virtual string GetFirstName()
{
return this._first_name;
}
public virtual void SetFirstName(string name)
{
this._first_name = name;
}
public virtual string GetLastName()
{
return this._last_name;
}
public virtual void SetLastName(string name)
{
this._last_name = name;
}
}
}