-
Notifications
You must be signed in to change notification settings - Fork 6
/
Constants.cs
50 lines (41 loc) · 2.02 KB
/
Constants.cs
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
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 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 SDK_VERSION = "top-sdk-net-20160607";
public const string SDK_VERSION_CLUSTER = "top-sdk-net-cluster-20160607";
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 MIME_TYPE_DEFAULT = "application/octet-stream";
public const int READ_BUFFER_SIZE = 1024 * 4;
}
}