mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 01:52:44 +02:00
Add RoomTimelineCellIdentifier that represents room timeline cell identifiers.
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
/// RoomTimelineCellIdentifier represents room timeline cell identifiers.
|
||||
typedef NS_ENUM(NSUInteger, RoomTimelineCellIdentifier) {
|
||||
|
||||
RoomTimelineCellIdentifierUnknown,
|
||||
|
||||
// - Text message
|
||||
// -- Incoming
|
||||
// --- Clear
|
||||
RoomTimelineCellIdentifierIncomingTextMessage,
|
||||
RoomTimelineCellIdentifierIncomingTextMessageWithoutSenderInfo,
|
||||
RoomTimelineCellIdentifierIncomingTextMessageWithPaginationTitle,
|
||||
RoomTimelineCellIdentifierIncomingTextMessageWithoutSenderName,
|
||||
RoomTimelineCellIdentifierIncomingTextMessageWithPaginationTitleWithoutSenderName,
|
||||
// --- Encrypted
|
||||
RoomTimelineCellIdentifierIncomingTextMessageEncrypted,
|
||||
RoomTimelineCellIdentifierIncomingTextMessageEncryptedWithoutSenderInfo,
|
||||
RoomTimelineCellIdentifierIncomingTextMessageEncryptedWithPaginationTitle,
|
||||
RoomTimelineCellIdentifierIncomingTextMessageEncryptedWithoutSenderName,
|
||||
RoomTimelineCellIdentifierIncomingTextMessageEncryptedWithPaginationTitleWithoutSenderName,
|
||||
// -- Outgoing
|
||||
// --- Clear
|
||||
RoomTimelineCellIdentifierOutgoingTextMessage,
|
||||
RoomTimelineCellIdentifierOutgoingTextMessageWithoutSenderInfo,
|
||||
RoomTimelineCellIdentifierOutgoingTextMessageWithPaginationTitle,
|
||||
RoomTimelineCellIdentifierOutgoingTextMessageWithoutSenderName,
|
||||
RoomTimelineCellIdentifierOutgoingTextMessageWithPaginationTitleWithoutSenderName,
|
||||
// --- Encrypted
|
||||
RoomTimelineCellIdentifierOutgoingTextMessageEncrypted,
|
||||
RoomTimelineCellIdentifierOutgoingTextMessageEncryptedWithoutSenderInfo,
|
||||
RoomTimelineCellIdentifierOutgoingTextMessageEncryptedWithPaginationTitle,
|
||||
RoomTimelineCellIdentifierOutgoingTextMessageEncryptedWithoutSenderName,
|
||||
RoomTimelineCellIdentifierOutgoingTextMessageEncryptedWithPaginationTitleWithoutSenderName,
|
||||
|
||||
// - Attachment
|
||||
// -- Incoming
|
||||
// --- Clear
|
||||
RoomTimelineCellIdentifierIncomingAttachment,
|
||||
RoomTimelineCellIdentifierIncomingAttachmentWithoutSenderInfo,
|
||||
RoomTimelineCellIdentifierIncomingAttachmentWithPaginationTitle,
|
||||
// --- Encrypted
|
||||
RoomTimelineCellIdentifierIncomingAttachmentEncrypted,
|
||||
RoomTimelineCellIdentifierIncomingAttachmentEncryptedWithoutSenderInfo,
|
||||
RoomTimelineCellIdentifierIncomingAttachmentEncryptedWithPaginationTitle,
|
||||
// -- Outgoing
|
||||
// --- Clear
|
||||
RoomTimelineCellIdentifierOutgoingAttachment,
|
||||
RoomTimelineCellIdentifierOutgoingAttachmentWithoutSenderInfo,
|
||||
RoomTimelineCellIdentifierOutgoingAttachmentWithPaginationTitle,
|
||||
// --- Encrypted
|
||||
RoomTimelineCellIdentifierOutgoingAttachmentEncrypted,
|
||||
RoomTimelineCellIdentifierOutgoingAttachmentEncryptedWithoutSenderInfo,
|
||||
RoomTimelineCellIdentifierOutgoingAttachmentEncryptedWithPaginationTitle,
|
||||
|
||||
// - Room membership
|
||||
RoomTimelineCellIdentifierMembership,
|
||||
RoomTimelineCellIdentifierMembershipWithPaginationTitle,
|
||||
RoomTimelineCellIdentifierMembershipCollapsed,
|
||||
RoomTimelineCellIdentifierMembershipCollapsedWithPaginationTitle,
|
||||
RoomTimelineCellIdentifierMembershipExpanded,
|
||||
RoomTimelineCellIdentifierMembershipExpandedWithPaginationTitle,
|
||||
|
||||
// - Key verification
|
||||
RoomTimelineCellIdentifierKeyVerificationIncomingRequestApproval,
|
||||
RoomTimelineCellIdentifierKeyVerificationIncomingRequestApprovalWithPaginationTitle,
|
||||
RoomTimelineCellIdentifierKeyVerificationRequestStatus,
|
||||
RoomTimelineCellIdentifierKeyVerificationRequestStatusWithPaginationTitle,
|
||||
RoomTimelineCellIdentifierKeyVerificationConclusion,
|
||||
RoomTimelineCellIdentifierKeyVerificationConclusionWithPaginationTitle,
|
||||
|
||||
// - Room creation
|
||||
RoomTimelineCellIdentifierRoomCreationCollapsed,
|
||||
RoomTimelineCellIdentifierRoomCreationCollapsedWithPaginationTitle,
|
||||
|
||||
// - Call
|
||||
RoomTimelineCellIdentifierDirectCallStatus,
|
||||
RoomTimelineCellIdentifierGroupCallStatus,
|
||||
|
||||
// - Voice message
|
||||
RoomTimelineCellIdentifierVoiceMessage,
|
||||
RoomTimelineCellIdentifierVoiceMessageWithoutSenderInfo,
|
||||
RoomTimelineCellIdentifierVoiceMessageWithPaginationTitle,
|
||||
|
||||
// - Poll
|
||||
RoomTimelineCellIdentifierPoll,
|
||||
RoomTimelineCellIdentifierPollWithoutSenderInfo,
|
||||
RoomTimelineCellIdentifierPollWithPaginationTitle,
|
||||
|
||||
// - Location sharing
|
||||
RoomTimelineCellIdentifierLocation,
|
||||
RoomTimelineCellIdentifierLocationWithoutSenderInfo,
|
||||
RoomTimelineCellIdentifierLocationWithPaginationTitle,
|
||||
|
||||
// - Others
|
||||
RoomTimelineCellIdentifierEmpty,
|
||||
RoomTimelineCellIdentifierSelectedSticker,
|
||||
RoomTimelineCellIdentifierRoomPredecessor,
|
||||
RoomTimelineCellIdentifierRoomCreationIntro,
|
||||
RoomTimelineCellIdentifierTyping
|
||||
};
|
||||
Reference in New Issue
Block a user