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

use strict;

package Raritan::RPC::smartlock::KeypadManager::KeypadEvent;

use constant typeId => "smartlock.KeypadManager.KeypadEvent:1.0.0";
use Raritan::RPC::idl::Event;

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

sub decode {
    my ($agent, $in) = @_;
    my $decoded = Raritan::RPC::idl::Event::decode($agent, $in);
    $decoded->{'keypad'} = Raritan::RPC::ObjectCodec::decode($agent, $in->{'keypad'}, 'smartlock.Keypad');
    return $decoded;
}

Raritan::RPC::Registry::registerCodecClass('smartlock.KeypadManager.KeypadEvent', 1, 0, 0, 'Raritan::RPC::smartlock::KeypadManager::KeypadEvent');
1;
