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.openencrypt.heartbeat /// public class OapiOpenencryptHeartbeatRequest : BaseDingTalkRequest { /// /// 微应用id /// public Nullable Appid { get; set; } /// /// xxx /// public string Extension { get; set; } #region IDingTalkRequest Members public override string GetApiName() { return "dingtalk.oapi.openencrypt.heartbeat"; } public override string GetApiCallType() { return DingTalkConstants.CALL_TYPE_OAPI; } public override IDictionary GetParameters() { TopDictionary parameters = new TopDictionary(); parameters.Add("appid", this.Appid); parameters.Add("extension", this.Extension); if (this.otherParams != null) { parameters.AddAll(this.otherParams); } return parameters; } public override void Validate() { RequestValidator.ValidateRequired("appid", this.Appid); } #endregion } }