@@ -9,67 +9,47 @@ public ToastMessage()
99 Id = Guid . NewGuid ( ) ;
1010 }
1111
12- public ToastMessage ( ToastType type , string message )
12+ public ToastMessage ( ToastType type )
13+ : this ( )
1314 {
14- Id = Guid . NewGuid ( ) ;
1515 Type = type ;
16+ }
17+
18+ public ToastMessage ( ToastType type , string message )
19+ : this ( type )
20+ {
1621 Message = message ;
1722 }
1823
1924 public ToastMessage ( ToastType type , string title , string message )
25+ : this ( type , message )
2026 {
21- Id = Guid . NewGuid ( ) ;
22- Type = type ;
2327 Title = title ;
24- Message = message ;
2528 }
2629
2730 public ToastMessage ( ToastType type , IconName iconName , string title , string message )
31+ : this ( type , title , message )
2832 {
29- Id = Guid . NewGuid ( ) ;
30- Type = type ;
3133 IconName = iconName ;
32- Title = title ;
33- Message = message ;
3434 }
3535
3636 public ToastMessage ( ToastType type , string customIconName , string title , string message )
37+ : this ( type , title , message )
3738 {
38- Id = Guid . NewGuid ( ) ;
39- Type = type ;
4039 CustomIconName = customIconName ;
41- Title = title ;
42- Message = message ;
4340 }
4441
45- public ToastMessage ( ToastType type , IconName iconName , string title , string helpText , string message )
42+ public ToastMessage ( ToastType type , IconName iconName , string title , string helpText , string message , bool autoHide = false )
43+ : this ( type , iconName , title , message )
4644 {
47- Id = Guid . NewGuid ( ) ;
48- Type = type ;
49- IconName = iconName ;
50- Title = title ;
51- HelpText = helpText ;
52- Message = message ;
53- }
54-
55- public ToastMessage ( ToastType type , string customIconName , string title , string helpText , string message )
56- {
57- Id = Guid . NewGuid ( ) ;
58- Type = type ;
59- CustomIconName = customIconName ;
60- Title = title ;
6145 HelpText = helpText ;
62- Message = message ;
46+ AutoHide = autoHide ;
6347 }
6448
65- public ToastMessage ( ToastType type , string customIconName , string title , string helpText , string message , bool autoHide )
49+ public ToastMessage ( ToastType type , string customIconName , string title , string helpText , string message , bool autoHide = false )
50+ : this ( type , customIconName , title , message )
6651 {
67- Id = Guid . NewGuid ( ) ;
68- Type = type ;
69- CustomIconName = customIconName ;
70- Title = title ;
7152 HelpText = helpText ;
72- Message = message ;
7353 AutoHide = autoHide ;
7454 }
7555
0 commit comments