| 1 | package WebService::Slack::WebApi::Channels; | ||
| 2 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | use parent 'WebService::Slack::WebApi::Base'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 3 | ▶ | use WebService::Slack::WebApi::Generator ( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 3 | archive => { | |
| 10 | channel => 'Str', | ||
| 11 | }, | ||
| 12 | create => { | ||
| 13 | name => 'Str', | ||
| 14 | validate => { isa => 'Bool', optional => 1 }, | ||
| 15 | }, | ||
| 16 | history => { | ||
| 17 | channel => 'Str', | ||
| 18 | count => { isa => 'Int', optional => 1 }, | ||
| 19 | inclusive => { isa => 'Bool', optional => 1 }, | ||
| 20 | latest => { isa => 'Str', optional => 1 }, | ||
| 21 | oldest => { isa => 'Str', optional => 1 }, | ||
| 22 | unreads => { isa => 'Bool', optional => 1 }, | ||
| 23 | }, | ||
| 24 | info => { | ||
| 25 | channel => 'Str', | ||
| 26 | }, | ||
| 27 | invite => { | ||
| 28 | channel => 'Str', | ||
| 29 | user => 'Str', | ||
| 30 | }, | ||
| 31 | join => { | ||
| 32 | name => 'Str', | ||
| 33 | validate => { isa => 'Bool', optional => 1 }, | ||
| 34 | }, | ||
| 35 | kick => { | ||
| 36 | channel => 'Str', | ||
| 37 | user => 'Str', | ||
| 38 | }, | ||
| 39 | leave => { | ||
| 40 | channel => 'Str', | ||
| 41 | }, | ||
| 42 | list => { | ||
| 43 | cursor => { isa => 'Str', optional => 1 }, | ||
| 44 | exclude_archived => { isa => 'Bool', optional => 1 }, | ||
| 45 | exclude_members => { isa => 'Bool', optional => 1 }, | ||
| 46 | limit => { isa => 'Int', optional => 1 }, | ||
| 47 | }, | ||
| 48 | mark => { | ||
| 49 | channel => 'Str', | ||
| 50 | ts => 'Str', | ||
| 51 | }, | ||
| 52 | rename => { | ||
| 53 | channel => 'Str', | ||
| 54 | name => 'Str', | ||
| 55 | validate => { isa => 'Bool', optional => 1 }, | ||
| 56 | }, | ||
| 57 | replies => { | ||
| 58 | channel => 'Str', | ||
| 59 | thread_ts => 'Str', | ||
| 60 | }, | ||
| 61 | set_purpose => { | ||
| 62 | channel => 'Str', | ||
| 63 | purpose => 'Str', | ||
| 64 | }, | ||
| 65 | set_topic => { | ||
| 66 | channel => 'Str', | ||
| 67 | topic => 'Str', | ||
| 68 | }, | ||
| 69 | unarchive => { | ||
| 70 | channel => 'Str', | ||
| 71 | }, | ||
| 72 | 3 | ); | |
| 73 | |||
| 74 | 3 | 1; | |
| 75 | |||