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

use strict;

package Raritan::RPC::session::HistoryEntry;

sub encode {
    my ($in) = @_;
    my $encoded = {};
    $encoded->{'creationTime'} = 1 * $in->{'creationTime'};
    $encoded->{'remoteIp'} = "$in->{'remoteIp'}";
    $encoded->{'clientType'} = "$in->{'clientType'}";
    return $encoded;
}

sub decode {
    my ($agent, $in) = @_;
    my $decoded = {};
    $decoded->{'creationTime'} = $in->{'creationTime'};
    $decoded->{'remoteIp'} = $in->{'remoteIp'};
    $decoded->{'clientType'} = $in->{'clientType'};
    return $decoded;
}

1;
