94 lines
2.6 KiB
C#
94 lines
2.6 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace DouyinApi.Model.DailyFortune;
|
|
|
|
public class DailyFortuneResponse
|
|
{
|
|
public string FortuneDate { get; set; } = string.Empty;
|
|
|
|
public FortuneProfile Profile { get; set; } = new FortuneProfile();
|
|
|
|
public IReadOnlyList<FortuneDimension> Dimensions { get; set; } = new List<FortuneDimension>();
|
|
|
|
public LuckyGuide LuckyGuide { get; set; } = new LuckyGuide();
|
|
|
|
public string Summary { get; set; } = string.Empty;
|
|
|
|
public string Narrative { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class FortuneProfile
|
|
{
|
|
public string BirthCity { get; set; } = string.Empty;
|
|
|
|
public string BirthProvince { get; set; } = string.Empty;
|
|
|
|
public string BirthDateTime { get; set; } = string.Empty;
|
|
|
|
public IReadOnlyList<PillarInfo> BirthPillars { get; set; } = new List<PillarInfo>();
|
|
|
|
public IReadOnlyList<PillarInfo> TodayPillars { get; set; } = new List<PillarInfo>();
|
|
|
|
public IReadOnlyList<DailyFortuneFiveElementScore> FiveElementDistribution { get; set; } = new List<DailyFortuneFiveElementScore>();
|
|
|
|
public IReadOnlyList<string> WeakElements { get; set; } = new List<string>();
|
|
|
|
public IReadOnlyList<string> StrongElements { get; set; } = new List<string>();
|
|
}
|
|
|
|
public class PillarInfo
|
|
{
|
|
public string Label { get; set; } = string.Empty;
|
|
|
|
public string Value { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class DailyFortuneFiveElementScore
|
|
{
|
|
public string Element { get; set; } = string.Empty;
|
|
|
|
public int Count { get; set; }
|
|
}
|
|
|
|
public class FortuneDimension
|
|
{
|
|
public string Key { get; set; } = string.Empty;
|
|
|
|
public string Title { get; set; } = string.Empty;
|
|
|
|
public int Score { get; set; }
|
|
|
|
/// <summary>
|
|
/// up / down / steady
|
|
/// </summary>
|
|
public string Trend { get; set; } = "steady";
|
|
|
|
public string Insight { get; set; } = string.Empty;
|
|
|
|
public string Suggestion { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class LuckyGuide
|
|
{
|
|
public string Element { get; set; } = string.Empty;
|
|
|
|
public IReadOnlyList<string> Colors { get; set; } = new List<string>();
|
|
|
|
public IReadOnlyList<string> Directions { get; set; } = new List<string>();
|
|
|
|
public IReadOnlyList<string> Props { get; set; } = new List<string>();
|
|
|
|
public IReadOnlyList<string> Activities { get; set; } = new List<string>();
|
|
|
|
public IReadOnlyList<LuckyTimeSlot> BestTimeSlots { get; set; } = new List<LuckyTimeSlot>();
|
|
}
|
|
|
|
public class LuckyTimeSlot
|
|
{
|
|
public string Label { get; set; } = string.Empty;
|
|
|
|
public string Period { get; set; } = string.Empty;
|
|
|
|
public string Reason { get; set; } = string.Empty;
|
|
}
|