2020-09-25 07:39:06 +02:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
2021-01-11 23:45:30 +01:00
|
|
|
import Mastodon
|
2020-09-25 07:39:06 +02:00
|
|
|
import ServiceLayer
|
|
|
|
|
|
|
|
public enum CollectionItemEvent {
|
|
|
|
case ignorableOutput
|
2021-03-23 05:08:09 +01:00
|
|
|
case contextParentDeleted
|
2021-02-03 22:51:45 +01:00
|
|
|
case refresh
|
2020-09-25 07:39:06 +02:00
|
|
|
case navigation(Navigation)
|
2021-04-25 21:38:36 +02:00
|
|
|
case reload(CollectionItem)
|
|
|
|
case presentEmojiPicker(sourceViewTag: Int, selectionAction: (String) -> Void)
|
2020-10-20 08:41:10 +02:00
|
|
|
case attachment(AttachmentViewModel, StatusViewModel)
|
2021-03-22 00:23:41 +01:00
|
|
|
case compose(identity: Identity? = nil,
|
|
|
|
inReplyTo: StatusViewModel? = nil,
|
|
|
|
redraft: Status? = nil,
|
2021-03-23 05:08:09 +01:00
|
|
|
redraftWasContextParent: Bool = false,
|
2021-03-22 00:23:41 +01:00
|
|
|
directMessageTo: AccountViewModel? = nil)
|
2021-01-12 00:40:46 +01:00
|
|
|
case confirmDelete(StatusViewModel, redraft: Bool)
|
2021-02-11 04:52:21 +01:00
|
|
|
case confirmUnfollow(AccountViewModel)
|
|
|
|
case confirmHideReblogs(AccountViewModel)
|
|
|
|
case confirmShowReblogs(AccountViewModel)
|
2021-02-11 00:41:41 +01:00
|
|
|
case confirmMute(AccountViewModel)
|
|
|
|
case confirmUnmute(AccountViewModel)
|
2021-02-10 08:46:00 +01:00
|
|
|
case confirmBlock(AccountViewModel)
|
|
|
|
case confirmUnblock(AccountViewModel)
|
|
|
|
case confirmDomainBlock(AccountViewModel)
|
|
|
|
case confirmDomainUnblock(AccountViewModel)
|
2020-11-30 03:54:11 +01:00
|
|
|
case report(ReportViewModel)
|
2020-09-25 07:39:06 +02:00
|
|
|
case share(URL)
|
2021-01-27 01:15:52 +01:00
|
|
|
case accountListEdit(AccountViewModel, AccountListEdit)
|
|
|
|
}
|
|
|
|
|
|
|
|
public extension CollectionItemEvent {
|
|
|
|
enum AccountListEdit {
|
|
|
|
case acceptFollowRequest
|
|
|
|
case rejectFollowRequest
|
|
|
|
}
|
2020-09-25 07:39:06 +02:00
|
|
|
}
|