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

use strict;

package Raritan::RPC::pdumodel::VoltageMonitoringSensor_1_0_3::EventOccurredEvent;

use constant typeId => "pdumodel.VoltageMonitoringSensor_1_0_3.EventOccurredEvent:1.0.0";
use Raritan::RPC::pdumodel::VoltageMonitoringSensor_1_0_3::Event;
use Raritan::RPC::idl::Event;

sub encode {
    my ($in) = @_;
    my $encoded = Raritan::RPC::idl::Event::encode($in);
    $encoded->{'event'} = Raritan::RPC::pdumodel::VoltageMonitoringSensor_1_0_3::Event::encode($in->{'event'});
    return $encoded;
}

sub decode {
    my ($agent, $in) = @_;
    my $decoded = Raritan::RPC::idl::Event::decode($agent, $in);
    $decoded->{'event'} = Raritan::RPC::pdumodel::VoltageMonitoringSensor_1_0_3::Event::decode($agent, $in->{'event'});
    return $decoded;
}

Raritan::RPC::Registry::registerCodecClass('pdumodel.VoltageMonitoringSensor_1_0_3.EventOccurredEvent', 1, 0, 0, 'Raritan::RPC::pdumodel::VoltageMonitoringSensor_1_0_3::EventOccurredEvent');
1;
