#![allow(clippy::too_many_arguments, clippy::new_without_default)]
use crate::types::Poll;
use crate::types::PollOption;
impl Poll {
pub fn new(
id: String,
question: String,
options: Vec<PollOption>,
total_voter_count: i64,
is_closed: bool,
is_anonymous: bool,
r#type: String,
allows_multiple_answers: bool,
) -> Self {
Self {
id,
question,
question_entities: None,
options,
total_voter_count,
is_closed,
is_anonymous,
r#type,
allows_multiple_answers,
correct_option_id: None,
explanation: None,
explanation_entities: None,
open_period: None,
close_date: None,
}
}
}