@@ -3,7 +3,6 @@ package net.thunderbird.feature.notification.api.content
33import net.thunderbird.core.common.exception.rootCauseMassage
44import net.thunderbird.feature.notification.api.NotificationChannel
55import net.thunderbird.feature.notification.api.NotificationGroup
6- import net.thunderbird.feature.notification.api.NotificationId
76import net.thunderbird.feature.notification.api.NotificationSeverity
87import net.thunderbird.feature.notification.api.ui.action.NotificationAction
98import net.thunderbird.feature.notification.resources.Res
@@ -26,7 +25,6 @@ sealed class MailNotification : AppNotification(), SystemNotification {
2625 override val severity: NotificationSeverity = NotificationSeverity .Information
2726
2827 data class Fetching (
29- override val id : NotificationId ,
3028 override val title : String ,
3129 override val accessibilityText : String ,
3230 override val contentText : String? ,
@@ -41,21 +39,18 @@ sealed class MailNotification : AppNotification(), SystemNotification {
4139 /* *
4240 * Creates a [Fetching] notification.
4341 *
44- * @param id The unique identifier for this notification.
4542 * @param accountUuid The UUID of the account being fetched.
4643 * @param accountDisplayName The display name of the account being fetched.
4744 * @param folderName The name of the folder being fetched, or null if fetching all folders.
4845 * @return A [Fetching] notification.
4946 */
5047 suspend operator fun invoke (
51- id : NotificationId ,
5248 accountUuid : String ,
5349 accountDisplayName : String ,
5450 folderName : String? ,
5551 ): Fetching {
5652 val title = getString(resource = Res .string.notification_bg_sync_title)
5753 return Fetching (
58- id = id,
5954 title = title,
6055 accessibilityText = folderName?.let { folderName ->
6156 getString(
@@ -78,7 +73,6 @@ sealed class MailNotification : AppNotification(), SystemNotification {
7873 }
7974
8075 data class Sending (
81- override val id : NotificationId ,
8276 override val title : String ,
8377 override val accessibilityText : String ,
8478 override val contentText : String? ,
@@ -93,17 +87,14 @@ sealed class MailNotification : AppNotification(), SystemNotification {
9387 /* *
9488 * Creates a [Sending] notification.
9589 *
96- * @param id The unique identifier for this notification.
9790 * @param accountUuid The UUID of the account sending the message.
9891 * @param accountDisplayName The display name of the account sending the message.
9992 * @return A [Sending] notification.
10093 */
10194 suspend operator fun invoke (
102- id : NotificationId ,
10395 accountUuid : String ,
10496 accountDisplayName : String ,
10597 ): Sending = Sending (
106- id = id,
10798 title = getString(resource = Res .string.notification_bg_send_title),
10899 accessibilityText = getString(
109100 resource = Res .string.notification_bg_send_ticker,
@@ -116,7 +107,6 @@ sealed class MailNotification : AppNotification(), SystemNotification {
116107 }
117108
118109 data class SendFailed (
119- override val id : NotificationId ,
120110 override val title : String ,
121111 override val contentText : String? ,
122112 override val channel : NotificationChannel ,
@@ -132,17 +122,14 @@ sealed class MailNotification : AppNotification(), SystemNotification {
132122 /* *
133123 * Creates a [SendFailed] notification.
134124 *
135- * @param id The unique identifier for this notification.
136125 * @param accountUuid The UUID of the account sending the message.
137126 * @param exception The exception that occurred during sending.
138127 * @return A [SendFailed] notification.
139128 */
140129 suspend operator fun invoke (
141- id : NotificationId ,
142130 accountUuid : String ,
143131 exception : Exception ,
144132 ): SendFailed = SendFailed (
145- id = id,
146133 title = getString(resource = Res .string.send_failure_subject),
147134 contentText = exception.rootCauseMassage,
148135 channel = NotificationChannel .Miscellaneous (accountUuid = accountUuid),
@@ -153,7 +140,6 @@ sealed class MailNotification : AppNotification(), SystemNotification {
153140 /* *
154141 * Represents a notification for a single new email.
155142 *
156- * @property id The unique identifier for this notification.
157143 * @property accountUuid The UUID of the account that received the email.
158144 * @property accountName The display name of the account that received the email.
159145 * @property messagesNotificationChannelSuffix The suffix for the messages notification channel.
@@ -164,7 +150,6 @@ sealed class MailNotification : AppNotification(), SystemNotification {
164150 * @property group The notification group this notification belongs to, if any.
165151 */
166152 data class NewMailSingleMail (
167- override val id : NotificationId ,
168153 val accountUuid : String ,
169154 val accountName : String ,
170155 val messagesNotificationChannelSuffix : String ,
@@ -197,7 +182,6 @@ sealed class MailNotification : AppNotification(), SystemNotification {
197182 /* *
198183 * Represents a summary notification for new mail.
199184 *
200- * @property id The unique identifier for this notification.
201185 * @property accountUuid The UUID of the account.
202186 * @property accountName The display name of the account.
203187 * @property messagesNotificationChannelSuffix The suffix for the messages notification channel.
@@ -207,7 +191,6 @@ sealed class MailNotification : AppNotification(), SystemNotification {
207191 */
208192 @ConsistentCopyVisibility
209193 data class NewMailSummaryMail private constructor(
210- override val id : NotificationId ,
211194 val accountUuid : String ,
212195 val accountName : String ,
213196 val messagesNotificationChannelSuffix : String ,
@@ -232,7 +215,6 @@ sealed class MailNotification : AppNotification(), SystemNotification {
232215 /* *
233216 * Creates a [NewMailSummaryMail] notification.
234217 *
235- * @param id The unique identifier for this notification.
236218 * @param accountUuid The UUID of the account.
237219 * @param accountDisplayName The display name of the account.
238220 * @param messagesNotificationChannelSuffix The suffix for the messages notification channel.
@@ -243,15 +225,13 @@ sealed class MailNotification : AppNotification(), SystemNotification {
243225 * @return A [NewMailSummaryMail] notification.
244226 */
245227 suspend operator fun invoke (
246- id : NotificationId ,
247228 accountUuid : String ,
248229 accountDisplayName : String ,
249230 messagesNotificationChannelSuffix : String ,
250231 newMessageCount : Int ,
251232 additionalMessagesCount : Int ,
252233 group : NotificationGroup ,
253234 ): NewMailSummaryMail = NewMailSummaryMail (
254- id = id,
255235 accountUuid = accountUuid,
256236 accountName = accountDisplayName,
257237 messagesNotificationChannelSuffix = messagesNotificationChannelSuffix,
0 commit comments