namespace Abp.Web.Models
{
public abstract class AjaxResponseBase
{
///
/// This property can be used to redirect user to a specified URL.
///
public string TargetUrl { get; set; }
///
/// Indicates success status of the result.
/// Set if this value is false.
///
public bool Success { get; set; }
///
/// Error details (Must and only set if is false).
///
public ErrorInfo Error { get; set; }
///
/// This property can be used to indicate that the current user has no privilege to perform this request.
///
public bool UnAuthorizedRequest { get; set; }
///
/// A special signature for AJAX responses. It's used in the client to detect if this is a response wrapped by ABP.
///
public bool __abp { get; } = true;
}
}