Nextrek
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
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SmartCharging.DataModel
{
public enum USER_TYPE { Standard, Owner};
class User
{
public string Id { get; set; }
public string Name { get; set; }
public string Surname { get; set; }
public string Email { get; set; }
public string CellphoneNumber { get; set; }
public USER_TYPE UserType { get; set; }
public User(string id, USER_TYPE type)
{
this.Id = id;
this.UserType = type;
}
public User()
{
}
public bool IsStandardUser(){
return this.UserType == USER_TYPE.Standard;
}
public bool IsOwnerUser()
{
return this.UserType == USER_TYPE.Owner;
}
}
}
|
Revision |
Author |
Commited |
Message |
660
|
JMBauan
|
Thu 03 Sep, 2015 08:14:10 +0000 |
|