User.cs
4.44 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace AIAHTML5.API.Models
{
public class User
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string EmailId { get; set; }
public string LoginId { get; set; }
public string Password { get; set; }
public int? SecurityQuestionId { get; set; }
public string SecurityAnswer { get; set; }
public int? CreatorId { get; set; }
public DateTime CreationDate { get; set; }
public DateTime? DeactivationDate { get; set; }
public int? ModifierId { get; set; }
public DateTime? ModifiedDate { get; set; }
public string UserType { get; set; }
public int UserTypeId { get; set; }
public bool IsActive { get; set; }
public bool IsCorrectPassword { get; set; }
public int IncorrectLoginAttemptCount { get; set; }
public bool IsBlocked { get; set; }
public int LicenseId { get; set; }
public int EditionId { get; set; }
public Int16 LoginFailureCauseId { get; set; }
public ArrayList Modules { get; set; }
public License LicenseInfo { get; set; }
public LicenseSubscriptionDetails LicenseSubscriptions { get; set; }
public bool IsSubscriptionExpired { get; set; }
public string SubscriptionExpirationDate { get; set; }
public string TermsAndConditionsTitle { get; set; }
public string TermsAndConditionsText { get; set; }
public const string SUPER_ADMIN = "Super Admin";
public const string GENERAL_ADMIN = "General Admin";
public const string DISTRICT_ADMIN = "District Admin";
public const string CLIENT_ADMIN = "Client Admin";
public const string SINGLE_USER = "Single User";
public const string CONCURRENT_USER = "Concurrent User";
public const string RESELLER = "Reseller";
public const string TEST_ACCOUNT = "Test Account";
public const string SITE_USER = "Site User";
}
public enum UserType
{
SUPER_ADMIN = 1, GENERAL_ADMIN, DISTRICT_ADMIN, CLIENT_ADMIN, SINGLE_USER, CONCURRENT_USER, RESELLER, TEST_ACCOUNT, SITE_USER
}
public class License
{
public int Id { get; set; }
public string AccountNumber { get; set; }
public string LicenseeFirstName { get; set; }
public string LicenseeLastName { get; set; }
public int LicenseTypeId { get; set; }
public string InstitutionName { get; set; }
public string Address1 { get; set; }
public string Address2 { get; set; }
public int CountryId { get; set; }
public int StateId { get; set; }
public string City { get; set; }
public string Zip { get; set; }
public string Phone { get; set; }
public string EmailId { get; set; }
public int TotalLogins { get; set; }
public int AccountTypeId { get; set; }
public bool IsActive { get; set; }
public bool IsDistrictSiteLicense { get; set; }
public DateTime CreationDate { get; set; }
public DateTime? ModifiedDate { get; set; }
public DateTime? CancellationDate { get; set; }
public int NoOfRenewals { get; set; }
public bool IsTermAccepted { get; set; }
public int CardNumber { get; set; }
public string ProductId { get; set; }
}
public class LicenseSubscriptionDetails
{
public int Id { get; set; }
public int LicenseId { get; set; }
public int? SubscriptionPlanId { get; set; }
public DateTime? SubscriptionValidFrom { get; set; }
public DateTime? SubscriptionValidThrough { get; set; }
public DateTime? RenewalDate { get; set; }
public string PaymentMode { get; set; }
public double TotalAmount { get; set; }
public double AmountPaid { get; set; }
public double AmountPending { get; set; }
public int NoOfImages { get; set; }
}
public class BlockedUser
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string LoginId { get; set; }
public string Password { get; set; }
public string EmailId { get; set; }
public string AccountNumber { get; set; }
public DateTime LoginTime { get; set; }
}
}