BayernMessenger/vector/src/main/java/im/vector/riotx/features/home/room/detail/timeline/item/MessageInformationData.kt

54 lines
1.7 KiB
Kotlin
Raw Normal View History

/*
* Copyright 2019 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.
*/
package im.vector.riotx.features.home.room.detail.timeline.item
2019-05-07 12:02:15 +00:00
import android.os.Parcelable
2019-05-29 16:43:33 +00:00
import im.vector.matrix.android.api.session.room.send.SendState
2019-05-07 12:02:15 +00:00
import kotlinx.android.parcel.Parcelize
@Parcelize
data class MessageInformationData(
val eventId: String,
val senderId: String,
val sendState: SendState,
val time: CharSequence? = null,
val avatarUrl: String?,
val memberName: CharSequence? = null,
val showInformation: Boolean = true,
/*List of reactions (emoji,count,isSelected)*/
2019-07-22 21:34:40 +00:00
val orderedReactionList: List<ReactionInfoData>? = null,
val hasBeenEdited: Boolean = false,
2019-08-08 12:32:11 +00:00
val hasPendingEdits: Boolean = false,
val readReceipts: List<ReadReceiptData> = emptyList()
2019-05-29 16:43:33 +00:00
) : Parcelable
@Parcelize
data class ReactionInfoData(
val key: String,
val count: Int,
val addedByMe: Boolean,
val synced: Boolean
) : Parcelable
2019-08-08 12:32:11 +00:00
@Parcelize
data class ReadReceiptData(
val userId: String,
val avatarUrl: String?,
val displayName: String?,
val timestamp: Long
) : Parcelable