using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api.Util;
using Top.Api;
using Top.Api.DingTalk;
namespace DingTalk.Api.Request
{
///
/// TOP API: dingtalk.oapi.edu.homework.student.topic.record
///
public class OapiEduHomeworkStudentTopicRecordRequest : BaseDingTalkRequest
{
///
/// 答题记录详情
///
public string StudentAnswerDetails { get; set; }
public List StudentAnswerDetails_ { set { this.StudentAnswerDetails = TopUtils.ObjectToJson(value); } }
#region IDingTalkRequest Members
public override string GetApiName()
{
return "dingtalk.oapi.edu.homework.student.topic.record";
}
public override string GetApiCallType()
{
return DingTalkConstants.CALL_TYPE_OAPI;
}
public override IDictionary GetParameters()
{
TopDictionary parameters = new TopDictionary();
parameters.Add("student_answer_details", this.StudentAnswerDetails);
if (this.otherParams != null)
{
parameters.AddAll(this.otherParams);
}
return parameters;
}
public override void Validate()
{
RequestValidator.ValidateObjectMaxListSize("student_answer_details", this.StudentAnswerDetails, 20);
}
///
/// StudentAnswerDetailDomain Data Structure.
///
[Serializable]
public class StudentAnswerDetailDomain : TopObject
{
///
/// 学生答题时间戳
///
[XmlElement("answer_time")]
public Nullable AnswerTime { get; set; }
///
/// 扩展属性
///
[XmlElement("attributes")]
public string Attributes { get; set; }
///
/// 业务编码
///
[XmlElement("biz_code")]
public string BizCode { get; set; }
///
/// 班级ID
///
[XmlElement("class_id")]
public string ClassId { get; set; }
///
/// 作业ID
///
[XmlElement("hw_id")]
public Nullable HwId { get; set; }
///
/// 是否答对
///
[XmlElement("is_right")]
public string IsRight { get; set; }
///
/// 题目ID
///
[XmlElement("question_id")]
public string QuestionId { get; set; }
///
/// 做了多少次
///
[XmlElement("redo_times")]
public Nullable RedoTimes { get; set; }
///
/// 做题时间
///
[XmlElement("spend_time")]
public Nullable SpendTime { get; set; }
///
/// 学生提交的答案
///
[XmlElement("student_answer")]
public string StudentAnswer { get; set; }
///
/// 学生ID
///
[XmlElement("student_id")]
public string StudentId { get; set; }
///
/// 学生姓名
///
[XmlElement("student_name")]
public string StudentName { get; set; }
}
#endregion
}
}