package com.vayunmathur.communicate.data /** * Which line a conversation, message, or call belongs to. The physical SIM is the * default so every existing construction site (system-provider reads) stays valid; * Google Voice rows are tagged explicitly when merged in by the repository. */ enum class CommunicateLine { Sim, GoogleVoice, WhatsApp, Signal, Rcs, } /** * A selectable outgoing line for the line picker: a specific physical SIM (by subscription id) * or Google Voice. Mirrors how the OS lets you pick which SIM to call/text from. */ sealed interface LineChoice { val label: String val category: CommunicateLine /** The physical SIM line identified by subscription id. */ data class Sim(val subscriptionId: Int, override val label: String) : LineChoice { override val category get() = CommunicateLine.Sim } /** The Google Voice line. */ data object GoogleVoice : LineChoice { override val label = "Google Voice" override val category get() = CommunicateLine.GoogleVoice } /** The WhatsApp line. */ data object WhatsApp : LineChoice { override val label = "WhatsApp" override val category get() = CommunicateLine.WhatsApp } /** The Signal line. */ data object Signal : LineChoice { override val label = "Signal" override val category get() = CommunicateLine.Signal } /** The carrier RCS line. */ data object Rcs : LineChoice { override val label = "RCS" override val category get() = CommunicateLine.Rcs } }