11using cAlgo . API . Alert . Models ;
22using cAlgo . API . Internals ;
33using System ;
4+ using cAlgo . API . Alert . Enums ;
45
56namespace cAlgo . API . Alert
67{
@@ -23,47 +24,57 @@ public static void ShowPopup(this INotifications notifications, TimeFrame timeFr
2324 ShowPopup ( notifications , timeFrame , symbol , type , string . Empty ) ;
2425 }
2526
26- public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , TradeType type , string triggeredBy )
27+ public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , TradeType type ,
28+ string triggeredBy )
2729 {
2830 ShowPopup ( notifications , timeFrame , symbol , type , triggeredBy , symbol . Bid ) ;
2931 }
3032
31- public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , string type , string triggeredBy )
33+ public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , string type ,
34+ string triggeredBy )
3235 {
3336 ShowPopup ( notifications , timeFrame , symbol , type , triggeredBy , symbol . Bid ) ;
3437 }
3538
36- public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , TradeType type , string triggeredBy , double price )
39+ public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , TradeType type ,
40+ string triggeredBy , double price )
3741 {
3842 ShowPopup ( notifications , timeFrame , symbol , type , triggeredBy , price , string . Empty ) ;
3943 }
4044
41- public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , string type , string triggeredBy , double price )
45+ public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , string type ,
46+ string triggeredBy , double price )
4247 {
4348 ShowPopup ( notifications , timeFrame , symbol , type , triggeredBy , price , string . Empty ) ;
4449 }
4550
46- public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , TradeType type , string triggeredBy , double price , string comment )
51+ public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , TradeType type ,
52+ string triggeredBy , double price , string comment )
4753 {
4854 ShowPopup ( notifications , timeFrame , symbol , type , triggeredBy , price , comment , DateTimeOffset . Now ) ;
4955 }
5056
51- public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , string type , string triggeredBy , double price , string comment )
57+ public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , string type ,
58+ string triggeredBy , double price , string comment )
5259 {
5360 ShowPopup ( notifications , timeFrame , symbol , type , triggeredBy , price , comment , DateTimeOffset . Now ) ;
5461 }
5562
56- public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , TradeType type , string triggeredBy , double price , string comment , DateTimeOffset time )
63+ public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , TradeType type ,
64+ string triggeredBy , double price , string comment , DateTimeOffset time )
5765 {
58- ShowPopup ( notifications , timeFrame . ToString ( ) , symbol . Name . ToString ( ) , type . ToString ( ) , triggeredBy , price , comment , time ) ;
66+ ShowPopup ( notifications , timeFrame . ToString ( ) , symbol . Name . ToString ( ) , type . ToString ( ) , triggeredBy , price , comment ,
67+ time ) ;
5968 }
6069
61- public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , string type , string triggeredBy , double price , string comment , DateTimeOffset time )
70+ public static void ShowPopup ( this INotifications notifications , TimeFrame timeFrame , Symbol symbol , string type ,
71+ string triggeredBy , double price , string comment , DateTimeOffset time )
6272 {
6373 ShowPopup ( notifications , timeFrame . ToString ( ) , symbol . Name . ToString ( ) , type , triggeredBy , price , comment , time ) ;
6474 }
6575
66- public static void ShowPopup ( this INotifications notifications , string timeFrame , string symbol , string type , string triggeredBy , double price , string comment , DateTimeOffset time )
76+ public static void ShowPopup ( this INotifications notifications , string timeFrame , string symbol , string type ,
77+ string triggeredBy , double price , string comment , DateTimeOffset time )
6778 {
6879 AlertModel alert = new AlertModel
6980 {
@@ -81,12 +92,12 @@ public static void ShowPopup(this INotifications notifications, string timeFrame
8192
8293 public static void ShowPopup ( this INotifications notifications , AlertModel alert )
8394 {
84- Launcher . Launch ( notifications , alert ) ;
95+ Launcher . Launch ( notifications , alert , AlertType . Popup ) ;
8596 }
8697
8798 public static void TriggerAlert ( this INotifications notifications , AlertModel alert )
8899 {
89- Launcher . Launch ( notifications , alert , showPopup : false ) ;
100+ Launcher . Launch ( notifications , alert , AlertType . Triggers ) ;
90101 }
91102
92103 #endregion Methods
0 commit comments