Add polls to backups.

This commit is contained in:
Michelle Tang
2025-10-14 11:41:47 -04:00
committed by Cody Henthorne
parent a2aabeaad2
commit 525175f04a
14 changed files with 236 additions and 54 deletions

View File

@@ -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

View 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