Refactor naming

This commit is contained in:
Tobias Reisinger 2023-11-26 22:46:08 +01:00
parent a9fd240bd3
commit ad58ab9bdd
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
10 changed files with 66 additions and 62 deletions

View file

@ -1,3 +1,4 @@
use crate::models::Client;
use crate::parameter::Parameter;
pub fn decode_value(value: &str) -> String {
@ -13,7 +14,7 @@ pub fn encode_value(value: &str) -> String {
}
pub enum SendTextMessageTarget {
Client(i32),
Client(Client),
Channel,
Server,
}
@ -27,7 +28,7 @@ impl From<SendTextMessageTarget> for String {
};
let target = match value {
SendTextMessageTarget::Client(id) => id.to_string(),
SendTextMessageTarget::Client(client) => client.clid.to_string(),
_ => String::from("0"),
};