예제 #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;
 }
예제 #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
            };
        }
예제 #3
0
 public UiMessage(NotyType type, string message)
 {
     Type    = type;
     Message = message;
 }
예제 #4
0
 public UiMessage(NotyType type, string message, int timeout)
 {
     Type    = type;
     Message = message;
     Timeout = timeout;
 }
예제 #5
0
 public NotyResult(NotyType type, string message, NotyLayout layout, int timeout) : this(type, message, layout, timeout, _defaultRequestBeviour) { }
예제 #6
0
 public NotyResult(NotyType type, string message, int timeout, JsonRequestBehavior behaviour) : this(type, message, _defaultLayout, timeout, behaviour) { }
예제 #7
0
 public NotyResult(NotyType type, string message, NotyLayout layout, JsonRequestBehavior behaviour) : this(type, message, layout, _defaultTimeout, behaviour) { }
예제 #8
0
 public NotyResult(NotyType type, string message) : this(type, message, _defaultLayout, _defaultTimeout, _defaultRequestBeviour) { }
예제 #9
0
 public NotyData(string text, NotyType type = NotyType.info, int timeout = 2500)
 {
     this.text     = text;
     this.timeout  = timeout;
     this.NotyType = type;
 }