This commit is contained in:
2024-09-16 20:28:54 +01:00
commit 6dd62737d2
13 changed files with 419 additions and 0 deletions

19
src/services/mod.rs Normal file
View File

@ -0,0 +1,19 @@
use crate::services::profile::ProfileService;
use egui::Context;
use nostr_sdk::Client;
pub mod profile;
pub struct Services {
pub context: Context,
pub profile: ProfileService,
}
impl Services {
pub fn new(client: Client, context: Context) -> Self {
Self {
context: context.clone(),
profile: ProfileService::new(client.clone(), context.clone()),
}
}
}