PageRenderTime 39ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/SLSTOffCampusWeb/Models/jsonModel.cs

https://bitbucket.org/jrobertshawe/off-campus-server
C# | 151 lines | 118 code | 28 blank | 5 comment | 0 complexity | e8f32b80837d7fbbc27e5a6a589058d5 MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. namespace SLSTOffCampusWeb.Models
  6. {
  7. public class registerUser
  8. {
  9. public string email;
  10. public string password;
  11. public string firstname;
  12. public string lastname;
  13. public string cellPhone;
  14. public string homePhone;
  15. }
  16. public class registerUserResponseModel
  17. {
  18. public string token { get; set; }
  19. public string errorMsg { get; set; }
  20. public int error { get; set; }
  21. }
  22. public class SyncObjectRequestModelParent
  23. {
  24. public string serverId { get; set; }
  25. public string tableName { get; set; }
  26. }
  27. public class SyncChangesRequestModel
  28. {
  29. public string appName { get; set; }
  30. public string updateTime { get; set; }
  31. public Dictionary<string, string> accessCriteria { get; set; }
  32. }
  33. public class SyncObjectRequestModelObject
  34. {
  35. public string serverId { get; set; }
  36. public string tableName { get; set; }
  37. public string coreDataId { get; set; }
  38. public Dictionary<string, string> recordData { get; set; }
  39. }
  40. public class SyncObjectRequestModelAccess
  41. {
  42. public Dictionary<string, string> objectData { get; set; }
  43. }
  44. public class SyncObjectRequestModel
  45. {
  46. public string action { get; set; }
  47. public string appname { get; set; }
  48. public SyncObjectRequestModelParent parent { get; set; }
  49. public SyncObjectRequestModelObject record { get; set; }
  50. public Dictionary<string, string> accessCriteria { get; set; }
  51. }
  52. public class SyncObjectChangeModel
  53. {
  54. public string updateTime { get; set; }
  55. public List<ResponseRecordModel> record { get; set; }
  56. public SyncObjectChangeModel()
  57. {
  58. // response = new responseModel();
  59. record = new List<ResponseRecordModel>();
  60. }
  61. }
  62. public class StatusResponseModel
  63. {
  64. public string errorMsg { get; set; }
  65. public int error { get; set; }
  66. }
  67. public class RecordModel
  68. {
  69. public string serverId { get; set; }
  70. public string tableName { get; set; }
  71. public string coreDataId { get; set; }
  72. }
  73. public class ResponseRecordModel
  74. {
  75. public SyncObjectRequestModelParent parent { get; set; }
  76. public SyncObjectRequestModelObject record { get; set; }
  77. public ResponseRecordModel()
  78. {
  79. // response = new responseModel();
  80. record = new SyncObjectRequestModelObject();
  81. record.recordData = new Dictionary<string, string>();
  82. parent = new SyncObjectRequestModelParent();
  83. }
  84. }
  85. public class ResponseModel
  86. {
  87. public RecordModel record { get; set; }
  88. public ResponseModel()
  89. {
  90. // response = new responseModel();
  91. record = new RecordModel();
  92. }
  93. }
  94. public class SyncRecordResponseModel
  95. {
  96. public StatusResponseModel status { get; set; }
  97. public ResponseModel response { get; set; }
  98. public SyncRecordResponseModel()
  99. {
  100. // response = new responseModel();
  101. response = new ResponseModel();
  102. status = new StatusResponseModel();
  103. }
  104. }
  105. public class SyncChangesResponse
  106. {
  107. public StatusResponseModel status { get; set; }
  108. public SyncObjectChangeModel response { get; set; }
  109. public SyncChangesResponse()
  110. {
  111. // response = new responseModel();
  112. response = new SyncObjectChangeModel();
  113. status = new StatusResponseModel();
  114. }
  115. }
  116. public class FeedBackRequest
  117. {
  118. public string name;
  119. public string title;
  120. public string email;
  121. public string description;
  122. }
  123. }