88 lines
2.3 KiB
C#
88 lines
2.3 KiB
C#
using System;
|
||
using System.Xml.Serialization;
|
||
using System.Collections.Generic;
|
||
|
||
namespace Aop.Api.Domain
|
||
{
|
||
/// <summary>
|
||
/// QuestInstanceDO Data Structure.
|
||
/// </summary>
|
||
[Serializable]
|
||
public class QuestInstanceDO : AopObject
|
||
{
|
||
/// <summary>
|
||
/// 跳转地址:若用户已添加目标,则返回打卡页,否则返回目标详情页地址
|
||
/// </summary>
|
||
[XmlElement("action_schema")]
|
||
public string ActionSchema { get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户当前获取卡片详情
|
||
/// </summary>
|
||
[XmlElement("card_instance")]
|
||
public CardInstanceDO CardInstance { get; set; }
|
||
|
||
/// <summary>
|
||
/// 卡片绑定的权益信息
|
||
/// </summary>
|
||
[XmlArray("card_promos")]
|
||
[XmlArrayItem("card_promo_d_o")]
|
||
public List<CardPromoDO> CardPromos { get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户已打卡天数
|
||
/// </summary>
|
||
[XmlElement("day_count")]
|
||
public long DayCount { get; set; }
|
||
|
||
/// <summary>
|
||
/// 小目标图标icon
|
||
/// </summary>
|
||
[XmlElement("icon")]
|
||
public string Icon { get; set; }
|
||
|
||
/// <summary>
|
||
/// 目标实例ID,若用户没有添加目标,则实例为空
|
||
/// </summary>
|
||
[XmlElement("instance_id")]
|
||
public string InstanceId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 当前目标的添加人数
|
||
/// </summary>
|
||
[XmlElement("join_count")]
|
||
public string JoinCount { get; set; }
|
||
|
||
/// <summary>
|
||
/// 当前用户是否添加目标
|
||
/// </summary>
|
||
[XmlElement("joined")]
|
||
public bool Joined { get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否已打卡
|
||
/// </summary>
|
||
[XmlElement("marked")]
|
||
public bool Marked { get; set; }
|
||
|
||
/// <summary>
|
||
/// 目标唯一ID
|
||
/// </summary>
|
||
[XmlElement("quest_id")]
|
||
public string QuestId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户设定目标的提醒时间
|
||
/// </summary>
|
||
[XmlArray("remind_times")]
|
||
[XmlArrayItem("string")]
|
||
public List<string> RemindTimes { get; set; }
|
||
|
||
/// <summary>
|
||
/// 小目标标题
|
||
/// </summary>
|
||
[XmlElement("title")]
|
||
public string Title { get; set; }
|
||
}
|
||
}
|