mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Add polls to backups.
This commit is contained in:
committed by
Cody Henthorne
parent
a2aabeaad2
commit
525175f04a
@@ -10,7 +10,7 @@ import kotlinx.parcelize.Parcelize
|
||||
data class PollOption(
|
||||
val id: Long,
|
||||
val text: String,
|
||||
val voterIds: List<Long>,
|
||||
val voters: List<Voter>,
|
||||
val isSelected: Boolean = false,
|
||||
val isPending: Boolean = false
|
||||
) : Parcelable
|
||||
|
||||
18
app/src/main/java/org/thoughtcrime/securesms/polls/Voter.kt
Normal file
18
app/src/main/java/org/thoughtcrime/securesms/polls/Voter.kt
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright 2025 Signal Messenger, LLC
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package org.thoughtcrime.securesms.polls
|
||||
|
||||
import android.os.Parcelable
|
||||
import kotlinx.parcelize.Parcelize
|
||||
|
||||
/**
|
||||
* Class to track someone who has voted in an option within a poll.
|
||||
*/
|
||||
@Parcelize
|
||||
data class Voter(
|
||||
val id: Long,
|
||||
val voteCount: Int
|
||||
) : Parcelable
|
||||
Reference in New Issue
Block a user