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.

36 lines
1.2 KiB

  1. //-----------------------------------------------------------------------
  2. // <copyright file="CSuccessResponseMessage.cs" company="Origtek">
  3. // CSuccessResponseMessage belongs to Copyright (c) Origtek. All rights reserved.
  4. // </copyright>
  5. //-----------------------------------------------------------------------
  6. namespace OT.COM.SignalerMessage
  7. {
  8. /// <summary>
  9. /// Success response
  10. /// </summary>
  11. public class CSuccessResponseMessage : CResponseMessage
  12. {
  13. /// <summary>
  14. /// Initializes a new instance of the <see cref="CSuccessResponseMessage" /> class
  15. /// </summary>
  16. /// <param name="i_sMsg">
  17. /// Message to display
  18. /// </param>
  19. /// <param name="i_crm">
  20. /// Origin request
  21. /// </param>
  22. public CSuccessResponseMessage(string i_sMsg, CRequestMessage i_crm = null)
  23. {
  24. this.result = EResponseResult.RR_TRUE;
  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. }