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

use strict;

package Raritan::RPC::sensors::Logger_3_1_3::TimedRecord;

use Raritan::RPC::sensors::Logger_3_1_3::Record;

sub encode {
    my ($in) = @_;
    my $encoded = {};
    $encoded->{'timestamp'} = 1 * $in->{'timestamp'};
    $encoded->{'record'} = Raritan::RPC::sensors::Logger_3_1_3::Record::encode($in->{'record'});
    return $encoded;
}

sub decode {
    my ($agent, $in) = @_;
    my $decoded = {};
    $decoded->{'timestamp'} = $in->{'timestamp'};
    $decoded->{'record'} = Raritan::RPC::sensors::Logger_3_1_3::Record::decode($agent, $in->{'record'});
    return $decoded;
}

1;
