Constants.cs 2.7 KB

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