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

use strict;

package Raritan::RPC::datapush::AssetStripsMessage;

use Raritan::RPC::datapush::AssetStripInfo;

sub encode {
    my ($in) = @_;
    my $encoded = {};
    $encoded->{'assetStrips'} = [];
    for (my $i0 = 0; $i0 <= $#{$in->{'assetStrips'}}; $i0++) {
        $encoded->{'assetStrips'}->[$i0] = Raritan::RPC::datapush::AssetStripInfo::encode($in->{'assetStrips'}->[$i0]);
    }
    return $encoded;
}

sub decode {
    my ($agent, $in) = @_;
    my $decoded = {};
    $decoded->{'assetStrips'} = [];
    for (my $i0 = 0; $i0 <= $#{$in->{'assetStrips'}}; $i0++) {
        $decoded->{'assetStrips'}->[$i0] = Raritan::RPC::datapush::AssetStripInfo::decode($agent, $in->{'assetStrips'}->[$i0]);
    }
    return $decoded;
}

1;
