# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright 2023 Raritan Inc. All rights reserved.
#
# This file was generated by IdlC from CascadeManager.idl.

use strict;

package Raritan::RPC::cascading::CascadeManager_2_0_0::LinkUnitAddedEvent;

use constant typeId => "cascading.CascadeManager_2_0_0.LinkUnitAddedEvent:1.0.0";
use Raritan::RPC::event::UserEvent;

sub encode {
    my ($in) = @_;
    my $encoded = Raritan::RPC::event::UserEvent::encode($in);
    $encoded->{'linkId'} = 1 * $in->{'linkId'};
    $encoded->{'host'} = "$in->{'host'}";
    return $encoded;
}

sub decode {
    my ($agent, $in) = @_;
    my $decoded = Raritan::RPC::event::UserEvent::decode($agent, $in);
    $decoded->{'linkId'} = $in->{'linkId'};
    $decoded->{'host'} = $in->{'host'};
    return $decoded;
}

Raritan::RPC::Registry::registerCodecClass('cascading.CascadeManager_2_0_0.LinkUnitAddedEvent', 1, 0, 0, 'Raritan::RPC::cascading::CascadeManager_2_0_0::LinkUnitAddedEvent');
1;
