From eb2d1ba10ef4dfa02c9ada0a339f7e7a1738e4f1 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 26 Jun 2009 20:13:41 -0500 Subject: add object to hold session data --- lib/Net/Termcast/Session.pm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lib/Net/Termcast/Session.pm diff --git a/lib/Net/Termcast/Session.pm b/lib/Net/Termcast/Session.pm new file mode 100644 index 0000000..92f9166 --- /dev/null +++ b/lib/Net/Termcast/Session.pm @@ -0,0 +1,32 @@ +package Net::Termcast::Session; +use Moose; + +has name => ( + is => 'ro', + isa => 'Str', +); + +has idle => ( + is => 'ro', + isa => 'Str', +); + +has connected => ( + is => 'ro', + isa => 'Str', +); + +has viewers => ( + is => 'ro', + isa => 'Int', +); + +has bytes => ( + is => 'ro', + isa => 'Int', +); + +__PACKAGE__->meta->make_immutable; +no Moose; + +1; -- cgit v1.2.3