AjaxResponseBase.cs 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. namespace Abp.Web.Models
  2. {
  3. public abstract class AjaxResponseBase
  4. {
  5. /// <summary>
  6. /// This property can be used to redirect user to a specified URL.
  7. /// </summary>
  8. public string TargetUrl { get; set; }
  9. /// <summary>
  10. /// Indicates success status of the result.
  11. /// Set <see cref="Error"/> if this value is false.
  12. /// </summary>
  13. public bool Success { get; set; }
  14. /// <summary>
  15. /// Error details (Must and only set if <see cref="Success"/> is false).
  16. /// </summary>
  17. public ErrorInfo Error { get; set; }
  18. /// <summary>
  19. /// This property can be used to indicate that the current user has no privilege to perform this request.
  20. /// </summary>
  21. public bool UnAuthorizedRequest { get; set; }
  22. /// <summary>
  23. /// A special signature for AJAX responses. It's used in the client to detect if this is a response wrapped by ABP.
  24. /// </summary>
  25. public bool __abp { get; } = true;
  26. }
  27. }