Files
Shrink-IDC/Lagrange.Core/Lagrange.Core/Common/Entity/BotUserInfo.cs

63 lines
1.5 KiB
C#

namespace Lagrange.Core.Common.Entity;
[Serializable]
public class BotUserInfo
{
internal BotUserInfo(uint uin, string nickname, string avatar, DateTime birthday, string city, string country, string school, uint age, DateTime registerTime, GenderInfo gender, string? qid, uint level, string sign, BotStatus status, List<BusinessCustom> business)
{
Uin = uin;
Avatar = avatar;
// Avatar = $"https://q1.qlogo.cn/g?b=qq&nk={Uin}&s=640";
Nickname = nickname;
Birthday = birthday;
City = city;
Country = country;
School = school;
Age = age;
RegisterTime = registerTime;
Gender = gender;
Qid = qid;
Level = level;
Sign = sign;
Status = status;
Business = business;
}
public uint Uin { get; set; }
public string Avatar { get; set; }
public string Nickname { get; set; }
public DateTime Birthday { get; set; }
public string City { get; set; }
public string Country { get; set; }
public string School { get; set; }
public uint Age { get; set; }
public DateTime RegisterTime { get; set; }
public GenderInfo Gender { get; set; }
public string? Qid { get; set; }
public uint Level { get; set; }
public string Sign { get; set; }
public BotStatus Status { get; set; }
public List<BusinessCustom> Business { get; set; }
public enum GenderInfo
{
Unset = 0,
Male = 1,
Female = 2,
Unknown = 255
}
}