IM::Engine::Outgoing - a message we're sending to somebody


IM-Engine documentation Contained in the IM-Engine distribution.

Index


Code Index:

NAME

Top

IM::Engine::Outgoing - a message we're sending to somebody

ATTRIBUTES

Top

recipient

An instance of IM::Engine::User which represents the recipient of this outgoing message.

incoming

An instance of IM::Engine::Incoming to which this outgoing message was a response. Since not all outgoing messages are replies, this attribute may have no value; use the has_incoming accessor to see whether it does.

message

See message in IM::Engine::Message.

plaintext

See plaintext in IM::Engine::Message.

SEE ALSO

Top

IM::Engine::Outgoing::IRC
IM::Engine::Outgoing::Jabber
IM::Engine::Incoming
IM::Engine::Message (the superclass)

IM-Engine documentation Contained in the IM-Engine distribution.

package IM::Engine::Outgoing;
use Moose;
use MooseX::StrictConstructor;

extends 'IM::Engine::Message';

has recipient => (
    is       => 'ro',
    isa      => 'IM::Engine::User',
    required => 1,
);

has incoming => (
    is        => 'ro',
    isa       => 'IM::Engine::Incoming',
    predicate => 'has_incoming',
);

__PACKAGE__->meta->make_immutable;
no Moose;

1;

# Sartak is not at all outgoing!

__END__