1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod vote;

use crate::jcli::command::rest::V1Command;
use vote::Vote;

pub struct RestV1 {
    v1_command: V1Command,
}

impl RestV1 {
    pub fn new(v1_command: V1Command) -> Self {
        Self { v1_command }
    }

    pub fn vote(self) -> Vote {
        Vote::new(self.v1_command.vote())
    }
}