User.cs 6.53 KB
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 string AccountNumber { get; set; }
        public  byte LicenseTypeId { get; set; }
        public bool Modesty { get; set; }
        public bool ModestyMode { get; set; }
        public Hashtable objEditionFeatures { 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 int LicenseEditionId { get; set; }
        public bool isSiteUser { get; set; }
        public Int16 LoginFailureCauseId { get; set; }
        public bool IsModestyOn { get; set; }
        public ArrayList Modules { get; set; }
        public int siteId { get; set; }
        public string pwd { get; set; }
        public String userSelectedSkintone { get; set; }
        public string userselectedModesty { get; set; }
        public string userSelectedFont { get; set; }
        public UserLexicon userLexicon { get; set; }


        public License LicenseInfo { get; set; }
        public LicenseSubscriptionDetails LicenseSubscriptions { get; set; }
        public LicenseUserExportedImageDetail UserExportImageDetail { get; set; }

        public bool IsSubscriptionNotStart { get; set; }
        public string SubscriptionStartDate { 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 LicenseUserExportedImageDetail
    {
        public bool isExportImage { get; set; }
        public int CountExportedImage { get; set; }
        public int ExptImageLimit { get; set; }
    }

    public class AodCourse
    {
        public string CourseId { get; set; }
        public string CourseName { get; set; }
        public string BodySystem { get; set; }
    }

    public class LicenseUserInsertImageDetail
    {
        public int LicenseId { get; set; }
        public int UserId { get; set; }
        public string ImageName { get; set; }
        public string OriginalFileName { get; set; }
        public string Title { get; set; }
        public string ModuleName { 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; }
    }

    public class SiteUrl
    {
        public int Id { get; set; }
        public string SiteIp { get; set; }
        public string SiteIpTo { get; set; }
        public string SiteMasterIpTo { get; set; }
        public int IsMaster { get; set; }




    }

    public class BypassLogin
    {
        public string LoginId { get; set; }
        public string Password { get; set; }

    }

    public class UserLexicon
    {
        public string primaryid { get; set; }
        public string secondryids { get; set; }

    }

}