summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-06-26 20:13:41 -0500
committerJesse Luehrs <doy@tozt.net>2009-06-26 20:13:41 -0500
commiteb2d1ba10ef4dfa02c9ada0a339f7e7a1738e4f1 (patch)
treedbf1b5c4ff2f807be228a4a7344e3c92957170af
parenta0ea5a6c6291797b59a970cfca684e196b0cc4b8 (diff)
downloadnet-termcast-eb2d1ba10ef4dfa02c9ada0a339f7e7a1738e4f1.tar.gz
net-termcast-eb2d1ba10ef4dfa02c9ada0a339f7e7a1738e4f1.zip
add object to hold session data
-rw-r--r--lib/Net/Termcast/Session.pm32
1 files changed, 32 insertions, 0 deletions
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;