use crate::core::subtypes::InteractionType;
#[derive(Debug)]
pub struct UpdateBase{
chat_id: String,
interaction_time: i64,
interaction_type: InteractionType,
update_id: String,
}
impl UpdateBase{
pub fn new(chat_id: String, interaction_time: i64, interaction_type: InteractionType, update_id: String) -> Self {
Self {
chat_id,
interaction_time,
interaction_type,
update_id,
}
}
pub fn chat_id(&self) -> &String {
&self.chat_id
}
pub fn update_id(&self) -> &String {
&self.update_id
}
pub fn interaction_time(&self) -> i64 {
self.interaction_time
}
pub fn interaction_type(&self) -> &InteractionType {
&self.interaction_type
}
}