2022-07-18 13:17:02 +02:00
|
|
|
use std::sync::Arc;
|
|
|
|
|
|
|
|
use services::InMemoryDownloadService;
|
|
|
|
|
|
|
|
pub mod services;
|
|
|
|
mod youtube;
|
|
|
|
|
|
|
|
#[allow(dead_code)]
|
|
|
|
pub struct App {
|
|
|
|
pub download_service: Arc<InMemoryDownloadService>,
|
2022-07-16 14:05:12 +02:00
|
|
|
}
|
|
|
|
|
2022-07-18 13:17:02 +02:00
|
|
|
impl App {
|
|
|
|
pub fn new() -> Self {
|
|
|
|
Self {
|
|
|
|
download_service: Arc::new(InMemoryDownloadService::new()),
|
|
|
|
}
|
|
|
|
}
|
2022-07-16 14:05:12 +02:00
|
|
|
}
|