yangle
2025-04-08 0453b4eb54d41323068d568f41dff9e75ee2c075
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
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
{
    /// <summary>
    /// TOP API: dingtalk.oapi.edu.homework.student.topic.record
    /// </summary>
    public class OapiEduHomeworkStudentTopicRecordRequest : BaseDingTalkRequest<DingTalk.Api.Response.OapiEduHomeworkStudentTopicRecordResponse>
    {
        /// <summary>
        /// 答题记录详情
        /// </summary>
        public string StudentAnswerDetails { get; set; }
 
        public List<StudentAnswerDetailDomain> 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<string, string> 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);
        }
 
    /// <summary>
/// StudentAnswerDetailDomain Data Structure.
/// </summary>
[Serializable]
 
public class StudentAnswerDetailDomain : TopObject
{
            /// <summary>
            /// 学生答题时间戳
            /// </summary>
            [XmlElement("answer_time")]
            public Nullable<long> AnswerTime { get; set; }
    
            /// <summary>
            /// 扩展属性
            /// </summary>
            [XmlElement("attributes")]
            public string Attributes { get; set; }
    
            /// <summary>
            /// 业务编码
            /// </summary>
            [XmlElement("biz_code")]
            public string BizCode { get; set; }
    
            /// <summary>
            /// 班级ID
            /// </summary>
            [XmlElement("class_id")]
            public string ClassId { get; set; }
    
            /// <summary>
            /// 作业ID
            /// </summary>
            [XmlElement("hw_id")]
            public Nullable<long> HwId { get; set; }
    
            /// <summary>
            /// 是否答对
            /// </summary>
            [XmlElement("is_right")]
            public string IsRight { get; set; }
    
            /// <summary>
            /// 题目ID
            /// </summary>
            [XmlElement("question_id")]
            public string QuestionId { get; set; }
    
            /// <summary>
            /// 做了多少次
            /// </summary>
            [XmlElement("redo_times")]
            public Nullable<long> RedoTimes { get; set; }
    
            /// <summary>
            /// 做题时间
            /// </summary>
            [XmlElement("spend_time")]
            public Nullable<long> SpendTime { get; set; }
    
            /// <summary>
            /// 学生提交的答案
            /// </summary>
            [XmlElement("student_answer")]
            public string StudentAnswer { get; set; }
    
            /// <summary>
            /// 学生ID
            /// </summary>
            [XmlElement("student_id")]
            public string StudentId { get; set; }
    
            /// <summary>
            /// 学生姓名
            /// </summary>
            [XmlElement("student_name")]
            public string StudentName { get; set; }
}
 
        #endregion
    }
}