You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.1 KiB

10 months ago
10 months ago
10 months ago
  1. namespace Swift.DAL.SwiftDAL
  2. {
  3. public class DbResult
  4. {
  5. private string _errorCode = "";
  6. private string _msg = "";
  7. private string _id = "";
  8. private string _extra = "";
  9. private string _extra1 = "";
  10. private string _extra2 = "";
  11. private string _extra3 = "";
  12. private string _tpErrorCode = "";
  13. private object _data = "";
  14. public DbResult() { }
  15. public string ErrorCode
  16. {
  17. set { _errorCode = value; }
  18. get { return _errorCode; }
  19. }
  20. public string Msg
  21. {
  22. set { _msg = value; }
  23. get { return _msg; }
  24. }
  25. public string Id
  26. {
  27. set { _id = value; }
  28. get { return _id; }
  29. }
  30. public string Extra
  31. {
  32. set { _extra = value; }
  33. get { return _extra; }
  34. }
  35. public string Extra1
  36. {
  37. set { _extra1 = value; }
  38. get { return _extra1; }
  39. }
  40. public string Extra2
  41. {
  42. set { _extra2 = value; }
  43. get { return _extra2; }
  44. }
  45. public string Extra3
  46. {
  47. set { _extra3 = value; }
  48. get { return _extra3; }
  49. }
  50. public object Data
  51. {
  52. set { _data = value; }
  53. get { return _data; }
  54. }
  55. //public string Extra2 { get; set; }
  56. public string TpErrorCode
  57. {
  58. get { return _tpErrorCode; }
  59. set { _tpErrorCode = value; }
  60. }
  61. public void SetError(string errorCode, string msg, string id, object data = null)
  62. {
  63. ErrorCode = errorCode;
  64. Msg = msg;
  65. Id = id;
  66. Data = data;
  67. }
  68. }
  69. public class UserApiKeysModel
  70. {
  71. public string responseCode { get; set; }
  72. public string responseMessage { get; set; }
  73. public string AppId { get; set; }
  74. public string APISecretKey { get; set; }
  75. public string UserId { get; set; }
  76. }
  77. public class ApiSecretKeys
  78. {
  79. public string ApiKey { get; set; }
  80. public string AppId { get; set; }
  81. }
  82. }