12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PDFSettings
- {
- /// <summary>
- /// 获取的用户信息
- /// </summary>
- public class UserDate
- {
- public bool TodayRegister { get; set; } = false;
- public string TodayRegisterTime { get; set; } = "2023-06-01 08:00:00";
- public bool IsLoginoff { get; set; } = false;
- public string id { get; set; }
- public string companyId { get; set; }
- public string appId { get; set; }
- public string Email { get; set; } = "";
- public string fullName { get; set; }
- public string subscriberType { get; set; }
- public string subscribed { get; set; }
- public string digestPassword { get; set; }
- public string phone { get; set; }
- public string industry { get; set; }
- public string lastPopularizeAt { get; set; }
- public string lastPresentedCouponAt { get; set; }
- public string mailable { get; set; }
- public string resetToken { get; set; }
- public string role { get; set; }
- public string job { get; set; }
- public string area { get; set; }
- public string platformType { get; set; }
- public string accountType { get; set; }
- public string accountSource { get; set; }
- public string createdAt { get; set; }
- public string updatedAt { get; set; }
- public string remark { get; set; }
- public string validFlag { get; set; }
- public List<string> subscriptionInfoList { get; set; }
- public string subscriptionendDate { get; set; }
- public string freeDate { get; set; } = "2023-06-01 08:00:00";
- public bool isInFreeUseTime { get; set; } = false;
- public void CheckRegisterStatus()
- {
- DateTime currentTime = DateTime.Now;
- DateTime thresholdTime = DateTime.Parse(TodayRegisterTime).Date.AddDays(1);
- if (currentTime > thresholdTime)
- {
- TodayRegister = false;
- }
- else
- {
- TodayRegister = true;
- }
- }
- }
-
- }
|