using System; using System.Collections.Generic; using Top.Api.Util; using Top.Api; using Top.Api.DingTalk; namespace DingTalk.Api.Request { /// /// TOP API: dingtalk.oapi.customize.conversation.update /// public class OapiCustomizeConversationUpdateRequest : BaseDingTalkRequest { /// /// 会话id /// public string ChatId { get; set; } /// /// extensionKey /// public string ExtensionKey { get; set; } /// /// extensionValue /// public string ExtensionValue { get; set; } /// /// 员工账号 /// public string Userid { get; set; } #region IDingTalkRequest Members public override string GetApiName() { return "dingtalk.oapi.customize.conversation.update"; } public override string GetApiCallType() { return DingTalkConstants.CALL_TYPE_OAPI; } public override IDictionary GetParameters() { TopDictionary parameters = new TopDictionary(); parameters.Add("chat_id", this.ChatId); parameters.Add("extension_key", this.ExtensionKey); parameters.Add("extension_value", this.ExtensionValue); parameters.Add("userid", this.Userid); if (this.otherParams != null) { parameters.AddAll(this.otherParams); } return parameters; } public override void Validate() { RequestValidator.ValidateRequired("chat_id", this.ChatId); RequestValidator.ValidateRequired("extension_key", this.ExtensionKey); RequestValidator.ValidateRequired("extension_value", this.ExtensionValue); RequestValidator.ValidateRequired("userid", this.Userid); } #endregion } }