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.

35 lines
1.2 KiB

  1. //-----------------------------------------------------------------------
  2. // <copyright file="CErrorResponseMessage.cs" company="Origtek">
  3. // CErrorResponseMessage belongs to Copyright (c) Origtek. All rights reserved.
  4. // </copyright>
  5. //-----------------------------------------------------------------------
  6. namespace OT.COM.SignalerMessage
  7. {
  8. /// <summary>
  9. /// Error response message
  10. /// </summary>
  11. public class CErrorResponseMessage : CResponseMessage
  12. {
  13. /// <summary>
  14. /// Initializes a new instance of the <see cref="CErrorResponseMessage" /> class
  15. /// </summary>
  16. /// <param name="i_sMsg">
  17. /// Error message
  18. /// </param>
  19. /// <param name="i_crm">
  20. /// Origin Request
  21. /// </param>
  22. public CErrorResponseMessage(string i_sMsg, CRequestMessage i_crm = null)
  23. {
  24. this.result = EResponseResult.RR_FALSE;
  25. this.msg = i_sMsg;
  26. if (i_crm != null)
  27. {
  28. this.project = i_crm.project;
  29. this.projectver = i_crm.projectver;
  30. this.method = i_crm.method;
  31. }
  32. }
  33. }
  34. }