1
yxj
昨天 23dbc5b616dfa1a2bcb1fa4302637b8df701f43c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 
namespace Top.Api
{
    public sealed class Constants
    {
        public const string CHARSET_UTF8 = "utf-8";
 
        public const string DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
        public const string DATE_TIME_MS_FORMAT = "yyyy-MM-dd HH:mm:ss.fff";
 
        public const string SIGN_METHOD_MD5 = "md5";
        public const string SIGN_METHOD_HMAC = "hmac";
        public const string SIGN_METHOD_HMAC_SHA256 = "hmac-sha256";
 
        public const string LOG_SPLIT = "^_^";
        public const string LOG_FILE_NAME = "topsdk.log";
 
        public const string ACCEPT_ENCODING = "Accept-Encoding";
        public const string CONTENT_ENCODING = "Content-Encoding";
        public const string CONTENT_ENCODING_GZIP = "gzip";
 
        public const string ERROR_RESPONSE = "error_response";
        public const string ERROR_CODE = "code";
        public const string ERROR_MSG = "msg";
 
        public const string QIMEN_CLOUD_ERROR_RESPONSE = "response";
        public const string QIMEN_CLOUD_ERROR_CODE = "code";
        public const string QIMEN_CLOUD_ERROR_MSG = "message";
 
        public const string SDK_VERSION = "top-sdk-net-20240702";
        public const string SDK_VERSION_CLUSTER = "top-sdk-net-cluster-20240702";
 
        public const string APP_KEY = "app_key";
        public const string FORMAT = "format";
        public const string METHOD = "method";
        public const string TIMESTAMP = "timestamp";
        public const string VERSION = "v";
        public const string SIGN = "sign";
        public const string SIGN_METHOD = "sign_method";
        public const string PARTNER_ID = "partner_id";
        public const string SESSION = "session";
        public const string FORMAT_XML = "xml";
        public const string FORMAT_JSON = "json";
        public const string SIMPLIFY = "simplify";
        public const string TARGET_APP_KEY = "target_app_key";
 
        public const string QM_ROOT_TAG_REQ = "request";
        public const string QM_ROOT_TAG_RSP = "response";
        public const string QM_CUSTOMER_ID = "customerId";
        public const string QM_CONTENT_TYPE = "text/xml;charset=utf-8";
        public const string QM_TARGETAPPKEY = "targetAppkey";
 
        public const string CTYPE_DEFAULT = "application/octet-stream";
        public const string CTYPE_FORM_DATA = "application/x-www-form-urlencoded";
        public const string CTYPE_FILE_UPLOAD = "multipart/form-data";
        public const string CTYPE_TEXT_XML = "text/xml";
        public const string CTYPE_TEXT_PLAIN = "text/plain";
        public const string CTYPE_APPLICATION_XML = "application/xml";
        public const string CTYPE_APP_JSON = "application/json";
        public const int READ_BUFFER_SIZE = 1024 * 4;
    }
}