using System; namespace Abp.Web.Models { /// /// This class is used to create standard responses for AJAX/remote requests. /// [Serializable] public class AjaxResponse : AjaxResponse { /// /// Creates an object. /// is set as true. /// public AjaxResponse() { } /// /// Creates an object with specified. /// /// Indicates success status of the result public AjaxResponse(bool success) : base(success) { } /// /// Creates an object with specified. /// is set as true. /// /// The actual result object public AjaxResponse(object result) : base(result) { } /// /// Creates an object with specified. /// is set as false. /// /// Error details /// Used to indicate that the current user has no privilege to perform this request public AjaxResponse(ErrorInfo error, bool unAuthorizedRequest = false) : base(error, unAuthorizedRequest) { } } }