use std::collections::HashMap;
use std::path::PathBuf;
use crate::config::ObserverConfig;
pub struct Session {
pub config: ObserverConfig,
pub id: Option<String>,
pub started_at: i64,
pub dir: Option<PathBuf>,
pub active: bool,
pub segment_seq: HashMap<String, u64>,
pub current: HashMap<String, String>,
pub remote_session_id: Option<String>,
}
impl Session {
pub fn new(config: ObserverConfig) -> Self {
Self {
config,
id: None,
started_at: 0,
dir: None,
active: false,
segment_seq: HashMap::new(),
current: HashMap::new(),
remote_session_id: None,
}
}
}