using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SDKCSharp;
namespace SDKCSharp.Common
{
public class OpenConfig
{
private String successCode = SdkConfig.SUCCESS_CODE;
///
/// 返回码成功值
///
public String SuccessCode
{
get { return successCode; }
set { successCode = value; }
}
private String defaultVersion = SdkConfig.DEFAULT_VERSION;
///
/// 默认版本号
///
public String DefaultVersion
{
get { return defaultVersion; }
set { defaultVersion = value; }
}
private String methodName = "method";
///
/// 接口属性名
///
public String MethodName
{
get { return methodName; }
set { methodName = value; }
}
private String versionName = "version";
///
/// 版本号名称
///
public String VersionName
{
get { return versionName; }
set { versionName = value; }
}
private String charsetName = "charset";
///
/// 编码名称
///
/// The name of the charset.
public string CharsetName { get => charsetName; set => charsetName = value; }
private String appKeyName = "app_id";
///
/// appKey名称
///
public String AppKeyName
{
get { return appKeyName; }
set { appKeyName = value; }
}
private String dataName = "biz_content";
///
/// data名称
///
public String DataName
{
get { return dataName; }
set { dataName = value; }
}
private String timestampName = "timestamp";
///
/// 时间戳名称
///
public String TimestampName
{
get { return timestampName; }
set { timestampName = value; }
}
private String timestampPattern = "yyyy-MM-dd HH:mm:ss";
///
/// 时间戳格式
///
public String TimestampPattern
{
get { return timestampPattern; }
set { timestampPattern = value; }
}
private String signName = "sign";
///
/// 签名串名称
///
public String SignName
{
get { return signName; }
set { signName = value; }
}
private String formatName = "format";
///
/// 格式化名称
///
public String FormatName
{
get { return formatName; }
set { formatName = value; }
}
private String formatType = "json";
///
/// 格式类型
///
public String FormatType
{
get { return formatType; }
set { formatType = value; }
}
private String accessTokenName = "app_auth_token";
/// accessToken名称
///
public String AccessTokenName
{
get { return accessTokenName; }
set { accessTokenName = value; }
}
private String locale = "zh-CN";
///
/// 国际化语言
///
public String Locale
{
get { return locale; }
set { locale = value; }
}
private String responseCodeName = "code";
///
/// 响应code名称
///
public String ResponseCodeName
{
get { return responseCodeName; }
set { responseCodeName = value; }
}
private int connectTimeoutSeconds = 10;
///
/// 请求超时时间
///
public int ConnectTimeoutSeconds
{
get { return connectTimeoutSeconds; }
set { connectTimeoutSeconds = value; }
}
private int readTimeoutSeconds = 10;
///
/// http读取超时时间
///
public int ReadTimeoutSeconds
{
get { return readTimeoutSeconds; }
set { readTimeoutSeconds = value; }
}
private string signTypeName = "sign_type";
///
/// 签名类型名称
///
/// The name of the sign type.
public string SignTypeName { get => signTypeName; set => signTypeName = value; }
private DataNameBuilder dataNameBuilder = SdkConfig.dataNameBuilder;
///
/// 节点名称构造器
///
/// The data name builder.
public DataNameBuilder DataNameBuilder { get => dataNameBuilder; set => dataNameBuilder = value; }
}
}