2019-01-25 13:04:59 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2019-07-02 15:27:08 +00:00
|
|
|
package im.vector.riotx.features.home.room.detail.timeline.item
|
2019-01-22 17:43:15 +00:00
|
|
|
|
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
|
2019-01-22 17:43:15 +00:00
|
|
|
data class MessageInformationData(
|
2019-04-11 17:19:52 +00:00
|
|
|
val eventId: String,
|
|
|
|
val senderId: String,
|
|
|
|
val sendState: SendState,
|
2019-01-22 17:43:15 +00:00
|
|
|
val time: CharSequence? = null,
|
|
|
|
val avatarUrl: String?,
|
|
|
|
val memberName: CharSequence? = null,
|
2019-05-14 09:07:53 +00:00
|
|
|
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
|