| 1 | package Exobrain::Intent::Tweet; | ||
| 2 | |||
| 3 | use v5.10.0; | ||
| 4 | |||
| 5 | use Moose; | ||
| 6 | use Method::Signatures; | ||
| 7 | use Exobrain::Types::Twitter qw( TweetStr ); | ||
| 8 | |||
| 9 | # ABSTRACT: Intent message for twitter | ||
| 10 | our $VERSION = '1.04'; # VERSION | ||
| 11 | |||
| 12 | method summary() { return $self->tweet; } | ||
| 13 | |||
| 14 | BEGIN { with 'Exobrain::Intent'; } | ||
| 15 | |||
| 16 | payload tweet => ( isa => TweetStr ); | ||
| 17 | |||
| 18 | # Actually this is an Int, but they get pretty large. Transmitting | ||
| 19 | # them as strings means we don't have to care about 32/64-bit issues. | ||
| 20 | payload in_response_to => ( isa => 'Str', required => 0 ); | ||
| 21 | |||
| 22 | 1; | ||
| 23 | |||
| 24 | __END__ |