C#SDK提交

This commit is contained in:
tanghc
2019-04-04 16:43:48 +08:00
parent 6c4651115f
commit 40872e1872
20 changed files with 456 additions and 12597 deletions

View File

@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using System.Text;
using SDKCSharp.Common;
using SDKCSharp.Utility;
@@ -14,8 +14,8 @@ namespace SDKCSharp.Request
{
private string method;
private string format = SdkConfig.FORMAT_TYPE;
private string charset = SdkConfig.CHARSET;
private string signType = SdkConfig.SIGN_TYPE;
private Encoding charset = SdkConfig.CHARSET;
private SignType signType = SdkConfig.SIGN_TYPE;
private string timestamp = DateTime.Now.ToString(SdkConfig.TIMESTAMP_PATTERN);
private string version;
@@ -30,8 +30,8 @@ namespace SDKCSharp.Request
public string BizContent { set => bizContent = value; }
public object BizModel { set => bizModel = value; }
public string Version { get => version; set => version = value; }
public string Charset { get => charset; set => charset = value; }
public string SignType { get => signType; set => signType = value; }
public Encoding Charset { get => charset; set => charset = value; }
public SignType SignType { get => signType; set => signType = value; }
/// <summary>
/// 返回接口名
@@ -70,8 +70,8 @@ namespace SDKCSharp.Request
Dictionary<string, string> dict = new Dictionary<string, string>();
dict[openConfig.MethodName] = this.Method;
dict[openConfig.FormatName] = this.format;
dict[openConfig.CharsetName] = this.charset;
dict[openConfig.SignTypeName] = this.signType;
dict[openConfig.CharsetName] = this.charset.BodyName;
dict[openConfig.SignTypeName] = this.signType.ToString();
dict[openConfig.TimestampName] = this.timestamp;
dict[openConfig.VersionName] = this.version;