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.impaas.newretail.sendstaffgroupmessage
///
public class OapiImpaasNewretailSendstaffgroupmessageRequest : BaseDingTalkRequest
{
///
/// 加密后的群号
///
public string ChatId { get; set; }
///
/// 消息内容
///
public string Content { get; set; }
///
/// 消息类型
///
public Nullable MsgType { get; set; }
///
/// 系统账号名
///
public string Sender { get; set; }
#region IDingTalkRequest Members
public override string GetApiName()
{
return "dingtalk.oapi.impaas.newretail.sendstaffgroupmessage";
}
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("content", this.Content);
parameters.Add("msg_type", this.MsgType);
parameters.Add("sender", this.Sender);
if (this.otherParams != null)
{
parameters.AddAll(this.otherParams);
}
return parameters;
}
public override void Validate()
{
}
#endregion
}
}