Files
GateDge2023_ljy/00.SDK/E_ZKEccTopSdk/ITopRequest.cs
PastSaid 16fbd10312 1
2024-04-29 17:57:07 +08:00

54 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace E_ZKEccTopSdk
{
/// <summary>
/// TOP请求接口。
/// </summary>
public interface ITopRequest<out T> where T : TopResponse
{
/// <summary>
/// 获取TOP的API名称。
/// </summary>
string GetApiName();
/// <summary>
/// 获取被调用的目标AppKey
/// </summary>
string GetTargetAppKey();
/// <summary>
/// 获取所有的Key-Value形式的文本请求参数字典。
/// </summary>
IDictionary<string, string> GetParameters();
/// <summary>
/// 获取API请求的用户授权码仅用于批量API调用请求。
/// </summary>
string GetBatchApiSession();
/// <summary>
/// 设置API请求的用户授权码仅用于批量API调用请求。
/// </summary>
void SetBatchApiSession(string session);
/// <summary>
/// 获取API在批量调用中的顺序仅用于批量API调用请求。
/// </summary>
int GetBatchApiOrder();
/// <summary>
/// 设置API在批量调用中的顺序仅用于批量API调用请求。
/// </summary>
void SetBatchApiOrder(int order);
/// <summary>
/// 客户端参数检查,减少服务端无效调用。
/// </summary>
void Validate();
}
}