public NotyData(string text, NotyType notyType, int timeout, NotyTheme notyTheme = NotyTheme.bootstrap_v4, NotyLayout notyLayout = NotyLayout.topRight) { this.text = text; this.timeout = timeout; NotyTheme = notyTheme; NotyType = notyType; NotyLayout = notyLayout; }
public NotyResult(NotyType type, string message, NotyLayout layout, int timeout, JsonRequestBehavior behaviour) { JsonRequestBehavior = behaviour; if (string.IsNullOrWhiteSpace(message)) throw new ArgumentNullException("message"); Data = new { Action = "Noty", Type = type.ToString(), Message = message, Modal = false, Layout = layout.ToString().Substring(0, 1).ToLower() + layout.ToString().Substring(1), Theme = "defaultTheme", Timeout = timeout }; }
public NotyResult(NotyType type, string message, NotyLayout layout, int timeout) : this(type, message, layout, timeout, _defaultRequestBeviour) { }
public NotyResult(NotyType type, string message, NotyLayout layout, JsonRequestBehavior behaviour) : this(type, message, layout, _defaultTimeout, behaviour) { }