Class ResponseModel
Inherited Members
Namespace: Dnn.PersonaBar.Library.Prompt.Models
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public class ResponseModel
Constructors
ResponseModel(bool, string)
Initializes a new instance of the ResponseModel class.
Declaration
public ResponseModel(bool err, string msg)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | err | Whether the response is an error. |
| string | msg | The message. |
ResponseModel(bool, string, string)
Initializes a new instance of the ResponseModel class.
Declaration
public ResponseModel(bool err, string msg, string data)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | err | Whether the response is an error. |
| string | msg | The message. |
| string | data | The data. |
Fields
Data
Declaration
public string Data
Field Value
| Type | Description |
|---|---|
| string |
IsError
Declaration
public bool IsError
Field Value
| Type | Description |
|---|---|
| bool |
Message
Declaration
public string Message
Field Value
| Type | Description |
|---|---|
| string |