17 lines
440 B
Rust
17 lines
440 B
Rust
|
|
pub use crate::APIInterface;
|
||
|
|
use crate::model::Conversation;
|
||
|
|
|
||
|
|
pub struct TestClient {}
|
||
|
|
|
||
|
|
impl APIInterface for TestClient {
|
||
|
|
fn get_version(&self) -> String {
|
||
|
|
return "KordophoneTest-1.0".to_string()
|
||
|
|
}
|
||
|
|
|
||
|
|
fn get_conversations(&self) -> Vec<Conversation> {
|
||
|
|
let mut conversations = Vec::new();
|
||
|
|
conversations.push(Conversation::builder().display_name("Test Conversation").build());
|
||
|
|
conversations
|
||
|
|
}
|
||
|
|
}
|