POE::Component::Client::MPD::Message - a message from POCOCM


POE-Component-Client-MPD documentation Contained in the POE-Component-Client-MPD distribution.

Index


Code Index:

NAME

Top

POE::Component::Client::MPD::Message - a message from POCOCM

VERSION

Top

version 1.100430

SYNOPSIS

Top

    print $msg->data . "\n";

DESCRIPTION

Top

POE::Component::Client::MPD::Message is more a placeholder for a hash ref with some pre-defined keys.

PUBLIC METHODS

Top

This module has a new() constructor, which should only be called by one of the POCOCM's modules.

The other public methods are the following accessors:

* request()

The event sent to POCOCM.

* params()

The params of the event to POCOCM, as sent by client.

* status()

The status of the request. True for success, False in case of error.

AUTHOR

Top

  Jerome Quelin

COPYRIGHT AND LICENSE

Top


POE-Component-Client-MPD documentation Contained in the POE-Component-Client-MPD distribution.

# 
# This file is part of POE-Component-Client-MPD
# 
# This software is copyright (c) 2007 by Jerome Quelin.
# 
# This is free software; you can redistribute it and/or modify it under
# the same terms as the Perl 5 programming language system itself.
# 
use 5.010;
use strict;
use warnings;

package POE::Component::Client::MPD::Message;
our $VERSION = '1.100430';
# ABSTRACT: a message from POCOCM

use Moose;
use MooseX::Has::Sugar;
use MooseX::SemiAffordanceAccessor;
use MooseX::Types::Moose qw{ ArrayRef Bool Str };

use POE::Component::Client::MPD::Types;

has request => ( ro, required, isa=>'Maybe[Str]' );
has params  => ( ro, required, isa=>ArrayRef );
has status  => ( rw, isa=>Bool );

has _data      => ( rw );
has _commands  => ( rw, isa=>ArrayRef );
has _cooking   => ( rw, isa=>'Cooking' );
has _transform => ( rw, isa=>'Transform' );
has _post      => ( rw, isa=>'Maybe[Str]' );
has _from      => ( rw, isa=>Str );

no Moose;
__PACKAGE__->meta->make_immutable;
1;



__END__