Winify – Diff between revs 30 and 40
?pathlinks?
Rev 30 | Rev 40 | |||
---|---|---|---|---|
Line 151... | Line 151... | |||
151 | private async void GotifyConnection_GotifyNotification(object sender, GotifyNotificationEventArgs e) |
151 | private async void GotifyConnection_GotifyNotification(object sender, GotifyNotificationEventArgs e) |
|
152 | { |
152 | { |
|
153 | var announcements = await LoadAnnouncements(); |
153 | var announcements = await LoadAnnouncements(); |
|
Line 154... | Line 154... | |||
154 | |
154 | |
|
- | 155 | foreach (var announcement in announcements.Announcement) |
||
155 | foreach (var announcement in announcements.Announcement) |
156 | { |
|
156 | if (announcement.AppId == e.Notification.AppId) |
157 | if (announcement.AppId == e.Notification.AppId) |
|
157 | { |
158 | { |
|
158 | var configuredNotification = new ToastForm( |
159 | var configuredNotification = new ToastForm( |
|
159 | $"{e.Notification.Title} ({e.Notification.Server.Name}/{e.Notification.AppId})", |
160 | $"{e.Notification.Title} ({e.Notification.Server.Name}/{e.Notification.AppId})", |
|
Line 160... | Line 161... | |||
160 | e.Notification.Message, announcement.LingerTime, e.Image); |
161 | e.Notification.Message, announcement.LingerTime, e.Image); |
|
Line 161... | Line 162... | |||
161 | |
162 | |
|
162 | configuredNotification.Show(); |
163 | configuredNotification.Show(); |
|
- | 164 | |
||
Line 163... | Line 165... | |||
163 | |
165 | return; |
|
164 | return; |
166 | } |
|
165 | } |
167 | } |