AlertModel Class

Namespace:
Weavy.Web.Models
Assembly:
Weavy.Web.dll

Class for pushing alert messages to the UI.

public class AlertModel
Inheritance:
System.Object → AlertModel

Constructors

AlertModel()

Properties

Dismissible Gets or sets a value indicating whether to add an optional dismiss button to the alert.
IsHtml Gets or sets a value indicating whether the alert message contains html or not.
IsInline Gets or sets a value indicating whether the Alert should be displayed inline instead of automatically on page load.
Message Gets or sets the alert message.
Sticky Gets or sets a value indicating whether the alert should fade out or not.
Type Gets or sets the alert type, e.g. info, success, warning or danger,

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.