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.card.user.post.update /// public class OapiEduCardUserPostUpdateRequest : BaseDingTalkRequest { /// /// 打卡动态修改入参 /// public string UpdatePostParam { get; set; } public OpenUpdatePostParamDomain UpdatePostParam_ { set { this.UpdatePostParam = TopUtils.ObjectToJson(value); } } #region IDingTalkRequest Members public override string GetApiName() { return "dingtalk.oapi.edu.card.user.post.update"; } public override string GetApiCallType() { return DingTalkConstants.CALL_TYPE_OAPI; } public override IDictionary GetParameters() { TopDictionary parameters = new TopDictionary(); parameters.Add("update_post_param", this.UpdatePostParam); if (this.otherParams != null) { parameters.AddAll(this.otherParams); } return parameters; } public override void Validate() { } /// /// OpenUpdatePostParamDomain Data Structure. /// [Serializable] public class OpenUpdatePostParamDomain : TopObject { /// /// 业务类型 /// [XmlElement("card_biz_code")] public string CardBizCode { get; set; } /// /// 班级ID /// [XmlElement("card_biz_id")] public string CardBizId { get; set; } /// /// 卡片ID /// [XmlElement("card_id")] public string CardId { get; set; } /// /// 提交的文本内容 /// [XmlElement("content")] public string Content { get; set; } /// /// 详情的RUL /// [XmlElement("detail_url")] public string DetailUrl { get; set; } /// /// 编辑的URL /// [XmlElement("edit_url")] public string EditUrl { get; set; } /// /// 提交的多媒体信息 /// [XmlElement("medias")] public string Medias { get; set; } /// /// 打卡:计量数 /// [XmlElement("metering_number")] public string MeteringNumber { get; set; } /// /// 动态ID /// [XmlElement("post_id")] public Nullable PostId { get; set; } /// /// 打卡:补卡标示 /// [XmlElement("reissue_card")] public Nullable ReissueCard { get; set; } /// /// 打卡:展示名称 /// [XmlElement("show_name")] public string ShowName { get; set; } /// /// 内容来源 /// [XmlElement("source_type")] public string SourceType { get; set; } /// /// 打卡:单位 /// [XmlElement("unit_of_measurement")] public string UnitOfMeasurement { get; set; } /// /// 当前登录用户的staffId /// [XmlElement("userid")] public string Userid { get; set; } } #endregion } }