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

use strict;

package Raritan::RPC::peripheral::GatewaySensorManager_3_0_0::InterpretationRule;

use constant typeId => "peripheral.GatewaySensorManager_3_0_0.InterpretationRule:1.0.0";

sub encode {
    my ($in) = @_;
    my $encoded = {};
    $encoded->{'interpretation'} = 1 * $in->{'interpretation'};
    $encoded->{'ignoreTimeout'} = 1 * $in->{'ignoreTimeout'};
    $encoded->{'accessType'} = 1 * $in->{'accessType'};
    return $encoded;
}

sub decode {
    my ($agent, $in) = @_;
    my $decoded = {};
    $decoded->{'interpretation'} = $in->{'interpretation'};
    $decoded->{'ignoreTimeout'} = $in->{'ignoreTimeout'};
    $decoded->{'accessType'} = $in->{'accessType'};
    return $decoded;
}

Raritan::RPC::Registry::registerCodecClass('peripheral.GatewaySensorManager_3_0_0.InterpretationRule', 1, 0, 0, 'Raritan::RPC::peripheral::GatewaySensorManager_3_0_0::InterpretationRule');
1;
