pass hook_id instead of url
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user