2020-09-25 05:39:06 +00:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
2021-01-11 22:45:30 +00:00
|
|
|
import Mastodon
|
2020-09-25 05:39:06 +00:00
|
|
|
import ServiceLayer
|
|
|
|
|
|
|
|
public enum CollectionItemEvent {
|
|
|
|
case ignorableOutput
|
2021-02-03 21:51:45 +00:00
|
|
|
case refresh
|
2020-09-25 05:39:06 +00:00
|
|
|
case navigation(Navigation)
|
2020-10-20 06:41:10 +00:00
|
|
|
case attachment(AttachmentViewModel, StatusViewModel)
|
2021-01-11 22:45:30 +00:00
|
|
|
case compose(inReplyTo: StatusViewModel?, redraft: Status?)
|
2021-01-11 23:40:46 +00:00
|
|
|
case confirmDelete(StatusViewModel, redraft: Bool)
|
2021-02-10 07:46:00 +00:00
|
|
|
case confirmBlock(AccountViewModel)
|
|
|
|
case confirmUnblock(AccountViewModel)
|
|
|
|
case confirmDomainBlock(AccountViewModel)
|
|
|
|
case confirmDomainUnblock(AccountViewModel)
|
2020-11-30 02:54:11 +00:00
|
|
|
case report(ReportViewModel)
|
2020-09-25 05:39:06 +00:00
|
|
|
case share(URL)
|
2021-01-27 00:15:52 +00:00
|
|
|
case accountListEdit(AccountViewModel, AccountListEdit)
|
|
|
|
}
|
|
|
|
|
|
|
|
public extension CollectionItemEvent {
|
|
|
|
enum AccountListEdit {
|
|
|
|
case acceptFollowRequest
|
|
|
|
case rejectFollowRequest
|
|
|
|
}
|
2020-09-25 05:39:06 +00:00
|
|
|
}
|