All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.com.sceyt.chatuikit.providers.defaults.DefaultMarkerTitleProvider.kt Maven / Gradle / Ivy

There is a newer version: 1.7.2
Show newest version
package com.sceyt.chatuikit.providers.defaults

import android.content.Context
import com.sceyt.chatuikit.R
import com.sceyt.chatuikit.data.models.messages.MarkerType
import com.sceyt.chatuikit.providers.VisualProvider

data object DefaultMarkerTitleProvider : VisualProvider {
    override fun provide(context: Context, from: MarkerType): String {
        return when (from) {
            MarkerType.Displayed -> context.getString(R.string.sceyt_seen_by)
            MarkerType.Received -> context.getString(R.string.sceyt_delivered_to)
            MarkerType.Played -> context.getString(R.string.sceyt_played_by)
            is MarkerType.Custom -> from.value
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy