| 1 | package SMS::SMS77::Message; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | SMS::SMS77::Message - a message object for SMS::SMS77 | ||
| 9 | |||
| 10 | =head1 VERSION | ||
| 11 | |||
| 12 | Version 0.01 | ||
| 13 | |||
| 14 | =cut | ||
| 15 | |||
| 16 | sub new { | ||
| 17 | my $invocant = shift(); | ||
| 18 | my $class = ref($invocant) || $invocant; | ||
| 19 | my $self = { | ||
| 20 | 'type' => undef, | ||
| 21 | 'from' => undef, | ||
| 22 | 'to' => [], | ||
| 23 | 'text' => undef, | ||
| 24 | 'delay' => undef, | ||
| 25 | 'status' => undef, | ||
| 26 | @_ | ||
| 27 | }; | ||
| 28 | |||
| 29 | bless( $self, $class ); | ||
| 30 | return ($self); | ||
| 31 | } | ||
| 32 | |||
| 33 | sub add_to { | ||
| 34 | my $self = shift(); | ||
| 35 | |||
| 36 | push(@{$self->{'to'}}, @_); | ||
| 37 | } | ||
| 38 | |||
| 39 | =head1 see also | ||
| 40 | |||
| 41 | SMS::SMS77 | ||
| 42 | |||
| 43 | =head1 AUTHOR | ||
| 44 | |||
| 45 | Markus Benning, C<< <me at w3r3wolf.de> >> | ||
| 46 | |||
| 47 | =head1 COPYRIGHT & LICENSE | ||
| 48 | |||
| 49 | Copyright 2007 Markus Benning, all rights reserved. | ||
| 50 | |||
| 51 | This program is free software; you can redistribute it and/or modify it | ||
| 52 | under the same terms as Perl itself. | ||
| 53 | |||
| 54 | =cut | ||
| 55 | |||
| 56 | 1; # End of SMS::SMS77::Message | ||
| 57 | |||
| 58 | # vim:ts=2:syntax=perl: | ||
| 59 | # vim600:foldmethod=marker: | ||
| 60 |