using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SDKCSharp; using SDKCSharp.Utility; namespace SDKCSharp.Common { public class OpenConfig { public static DataNameBuilder DATA_NAME_BUILDER = new DefaultDataNameBuilder(); /// /// 返回码成功值 /// public string SuccessCode { get; set; } = "10000"; /// /// 默认版本号 /// public string DefaultVersion { get; set; } = "1.0"; /// /// 字符编码 /// /// The charset. public Encoding Charset { get; set; } = Encoding.UTF8; /// /// 签名类型 /// /// The type of the sign. public SignType SignType { get; set; } = SignType.RSA2; /// /// 格式类型 /// public string FormatType { get; set; } = "json"; /// /// 时间戳格式 /// public string TimestampPattern { get; set; } = "yyyy-MM-dd HH:mm:ss"; /// /// 接口属性名 /// public string MethodName { get; set; } = "method"; /// /// 版本号名称 /// public string VersionName { get; set; } = "version"; /// /// 编码名称 /// /// The name of the charset. public string CharsetName { get; set; } = "charset"; /// /// appKey名称 /// public string AppKeyName { get; set; } = "app_id"; /// /// data名称 /// public string DataName { get; set; } = "biz_content"; /// /// 时间戳名称 /// public string TimestampName { get; set; } = "timestamp"; /// /// 签名串名称 /// public string SignName { get; set; } = "sign"; /// /// 签名类型名称 /// /// The name of the sign type. public string SignTypeName { get; set; } = "sign_type"; /// /// 格式化名称 /// public string FormatName { get; set; } = "format"; /// accessToken名称 /// public string AccessTokenName { get; set; } = "app_auth_token"; /// /// 国际化语言 /// public string Locale { get; set; } = "zh-CN"; /// /// 响应code名称 /// public string ResponseCodeName { get; set; } = "code"; /// /// 错误响应节点 /// /// The name of the error response. public string ErrorResponseName { get; set; } = "error_response"; /// /// 请求超时时间 /// public int ConnectTimeoutSeconds { get; set; } = 10; /// /// http读取超时时间 /// public int ReadTimeoutSeconds { get; set; } = 10; /// /// 节点名称构造器 /// /// The data name builder. public DataNameBuilder DataNameBuilder { get; set; } = DATA_NAME_BUILDER; } }