Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pantasystem committed Oct 8, 2023
1 parent bbb1386 commit b91c9ef
Showing 1 changed file with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import net.pantasystem.milktea.model.notification.PollEndedNotification
import net.pantasystem.milktea.model.notification.PostNotification
import net.pantasystem.milktea.model.notification.ReactionNotification
import net.pantasystem.milktea.model.notification.RenoteNotification
import net.pantasystem.milktea.model.notification.UnknownNotification
import net.pantasystem.milktea.model.user.User

fun TootPollDTO?.toPoll(): Poll? {
Expand Down Expand Up @@ -174,13 +175,31 @@ fun MstNotificationDTO.toModel(a: Account, isRead: Boolean): Notification {
)
}
MstNotificationDTO.NotificationType.Update -> {
TODO("通知種別${type}はまだ実装されていません")
UnknownNotification(
id = id,
createdAt = createdAt,
isRead = isRead,
rawType = type.name,
userId = userId,
)
}
MstNotificationDTO.NotificationType.AdminSingUp -> {
TODO("通知種別${type}はまだ実装されていません")
UnknownNotification(
id = id,
createdAt = createdAt,
isRead = isRead,
rawType = type.name,
userId = userId,
)
}
MstNotificationDTO.NotificationType.AdminReport -> {
TODO("通知種別${type}はまだ実装されていません")
UnknownNotification(
id = id,
createdAt = createdAt,
isRead = isRead,
rawType = type.name,
userId = userId,
)
}
MstNotificationDTO.NotificationType.EmojiReaction -> {
ReactionNotification(
Expand Down

0 comments on commit b91c9ef

Please sign in to comment.