Example #1
0
 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;
 }
Example #2
0
        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
            };
        }
Example #3
0
 public NotyResult(NotyType type, string message, NotyLayout layout, int timeout) : this(type, message, layout, timeout, _defaultRequestBeviour) { }
Example #4
0
 public NotyResult(NotyType type, string message, NotyLayout layout, JsonRequestBehavior behaviour) : this(type, message, layout, _defaultTimeout, behaviour) { }