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

use strict;

package Raritan::RPC::webcam::StorageManager::ImageStorageMetaData;

use Raritan::RPC::webcam::StorageManager::StorageMetaData;
use Raritan::RPC::webcam::ImageMetaData;

sub encode {
    my ($in) = @_;
    my $encoded = {};
    $encoded->{'imageMeta'} = Raritan::RPC::webcam::ImageMetaData::encode($in->{'imageMeta'});
    $encoded->{'storageMeta'} = Raritan::RPC::webcam::StorageManager::StorageMetaData::encode($in->{'storageMeta'});
    return $encoded;
}

sub decode {
    my ($agent, $in) = @_;
    my $decoded = {};
    $decoded->{'imageMeta'} = Raritan::RPC::webcam::ImageMetaData::decode($agent, $in->{'imageMeta'});
    $decoded->{'storageMeta'} = Raritan::RPC::webcam::StorageManager::StorageMetaData::decode($agent, $in->{'storageMeta'});
    return $decoded;
}

1;
