pass hook_id instead of url

This commit is contained in:
Grant Limberg
2023-08-15 14:51:14 -07:00
parent 714ef59814
commit 5becb41bd4
3 changed files with 10 additions and 12 deletions

View File

@@ -32,19 +32,19 @@ pub struct NetworkJoinedParams {
#[serde(rename = "MemberID")]
pub member_id: String,
#[serde(rename = "HookURL")]
pub hook_url: String,
#[serde(rename = "HookID")]
pub hook_id: String,
#[serde(rename = "SrcIP")]
pub src_ip: Option<String>,
}
impl NetworkJoinedParams {
fn new(network_id: &str, member_id: &str, hook_url: &str, src_ip: Option<&str>) -> Self {
fn new(network_id: &str, member_id: &str, hook_id: &str, src_ip: Option<&str>) -> Self {
Self {
network_id: network_id.to_string(),
member_id: member_id.to_string(),
hook_url: hook_url.to_string(),
hook_id: hook_id.to_string(),
src_ip: match src_ip {
Some(x) => Some(x.to_string()),
None => None,