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.

25 lines
735 B

4 years ago
  1. namespace Common.Model
  2. {
  3. public class DbResponse
  4. {
  5. public string ResponseCode { get; set; }
  6. public string Msg { get; set; }
  7. public string Id { get; set; }
  8. public object Data { get; set; }
  9. public string Extra { get; set; }
  10. public string Extra2 { get; set; }
  11. public void SetResponse(string responseCode, string msg, string id = null, string extra = null, string extra2 = null)
  12. {
  13. ResponseCode = responseCode;
  14. Msg = msg;
  15. Id = id;
  16. Extra = extra;
  17. Extra2 = extra2;
  18. }
  19. }
  20. public class ResponseWithUrl : DbResponse
  21. {
  22. public string Url { get; set; }
  23. }
  24. }