| 1 | package Exobrain::Measurement::DirectMessage; | ||
| 2 | |||
| 3 | use Moose; | ||
| 4 | use Method::Signatures; | ||
| 5 | |||
| 6 | # ABSTRACT: A direct message of any sort | ||
| 7 | our $VERSION = '1.08'; # VERSION | ||
| 8 | |||
| 9 | # Declare that we will have a summary attribute. This is to make | ||
| 10 | # our roles happy. | ||
| 11 | sub summary; | ||
| 12 | |||
| 13 | # This needs to happen at begin time so it can add the 'payload' | ||
| 14 | # keyword. | ||
| 15 | |||
| 16 | # TODO: Should this *really* be a ::Social ? | ||
| 17 | |||
| 18 | BEGIN { with 'Exobrain::Measurement::Social'; } | ||
| 19 | |||
| 20 | |||
| 21 | # A summary *must* be provided | ||
| 22 | has summary => ( | ||
| 23 | isa => 'Str', is => 'ro', required => 1, | ||
| 24 | ); | ||
| 25 | |||
| 26 | # Direct messages are to me, unless set otherwise. | ||
| 27 | has '+private' => ( default => 1 ); | ||
| 28 | has '+to_me' => ( default => 1 ); | ||
| 29 | |||
| 30 | 1; | ||
| 31 | |||
| 32 | __END__ |