Refactor naming
This commit is contained in:
parent
a9fd240bd3
commit
ad58ab9bdd
10 changed files with 66 additions and 62 deletions
|
|
@ -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"),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue