Rewrite to a API trait.

This commit is contained in:
2026-01-11 14:12:54 +01:00
parent ea9f05b048
commit 88f8cf76ef
45 changed files with 1384 additions and 1030 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
use std::fmt::Display;
use async_trait::async_trait;
use gamenight_api_client_rs::{apis::default_api::rename_game_post, models::RenameGameRequestBody};
use gamenight_api_client_rs::models::RenameGameRequestBody;
use inquire::Text;
use crate::domain::game::Game;
@@ -32,7 +32,7 @@ impl<'a> Flow<'a> for RenameGame {
id: self.game.id.to_string(),
name
};
rename_game_post(&state.api_configuration, Some(req)).await?;
state.api.rename_game_post(Some(req)).await?;
return Ok((FlowOutcome::Successful, state))
}