using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api;
namespace DingTalk.Api.Response
{
///
/// OapiWorkspaceTaskGetResponse.
///
public class OapiWorkspaceTaskGetResponse : DingTalkResponse
{
///
/// 错误码
///
[XmlElement("errcode")]
public long Errcode { get; set; }
///
/// 错误描述
///
[XmlElement("errmsg")]
public string Errmsg { get; set; }
///
/// 响应结果
///
[XmlElement("result")]
public TaskDomain Result { get; set; }
///
/// TaskExtensionDomain Data Structure.
///
[Serializable]
public class TaskExtensionDomain : TopObject
{
///
/// 评论数
///
[XmlElement("comment_count")]
public string CommentCount { get; set; }
///
/// 附件地址
///
[XmlElement("file_path")]
public string FilePath { get; set; }
///
/// 用户可扩展的字段
///
[XmlElement("other")]
public string Other { get; set; }
}
///
/// TaskDomain Data Structure.
///
[Serializable]
public class TaskDomain : TopObject
{
///
/// 归属企业id
///
[XmlElement("belong_corp_id")]
public string BelongCorpId { get; set; }
///
/// 业务标识
///
[XmlElement("biz_tag")]
public string BizTag { get; set; }
///
/// 任务所属项目(虚拟企业),基于项目空间的项目
///
[XmlElement("corp_id")]
public string CorpId { get; set; }
///
/// 创建者id
///
[XmlElement("creator_userid")]
public string CreatorUserid { get; set; }
///
/// 任务描述
///
[XmlElement("description")]
public string Description { get; set; }
///
/// 执行者id
///
[XmlElement("executor_userid")]
public string ExecutorUserid { get; set; }
///
/// 任务的扩展字段
///
[XmlElement("extension")]
public TaskExtensionDomain Extension { get; set; }
///
/// 完成时间
///
[XmlElement("finish_date")]
public string FinishDate { get; set; }
///
/// 创建时间
///
[XmlElement("gmt_create")]
public string GmtCreate { get; set; }
///
/// 修改时间
///
[XmlElement("gmt_modified")]
public string GmtModified { get; set; }
///
/// 是否归档
///
[XmlElement("is_archived")]
public bool IsArchived { get; set; }
///
/// 是否放入回收站
///
[XmlElement("is_recycled")]
public bool IsRecycled { get; set; }
///
/// 更新者id
///
[XmlElement("modifier_userid")]
public string ModifierUserid { get; set; }
///
/// 父任务id
///
[XmlElement("parent_id")]
public string ParentId { get; set; }
///
/// 计划完成时间
///
[XmlElement("plan_finish_date")]
public string PlanFinishDate { get; set; }
///
/// 计划开始时间
///
[XmlElement("plan_start_date")]
public string PlanStartDate { get; set; }
///
/// 优先级
///
[XmlElement("priority")]
public long Priority { get; set; }
///
/// 来源id
///
[XmlElement("source_id")]
public string SourceId { get; set; }
///
/// 开始时间
///
[XmlElement("start_date")]
public string StartDate { get; set; }
///
/// 工作流状态id
///
[XmlElement("status_id")]
public long StatusId { get; set; }
///
/// 状态阶段: 开始阶段(0),进行阶段(1),完成阶段(2)
///
[XmlElement("status_stage")]
public long StatusStage { get; set; }
///
/// 标题
///
[XmlElement("subject")]
public string Subject { get; set; }
///
/// 任务id
///
[XmlElement("task_id")]
public string TaskId { get; set; }
///
/// 任务类型分类:// 任务 TASK("task"), // 需求 REQ("req"), // 缺陷 BUG("bug"), // 风险 RISK("risk"), // 工作项 WORKITEM("workitem")
///
[XmlElement("task_type_category")]
public string TaskTypeCategory { get; set; }
///
/// 任务类型id
///
[XmlElement("task_type_id")]
public long TaskTypeId { get; set; }
///
/// 任务参与者列表
///
[XmlArray("tracker_userids")]
[XmlArrayItem("string")]
public List TrackerUserids { get; set; }
}
}
}