| 1 | package Beekeeper::JSONRPC; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | our $VERSION = '0.09'; | ||
| 7 | |||
| 8 | use Beekeeper::JSONRPC::Request; | ||
| 9 | use Beekeeper::JSONRPC::Notification; | ||
| 10 | use Beekeeper::JSONRPC::Response; | ||
| 11 | use Beekeeper::JSONRPC::Error; | ||
| 12 | |||
| 13 | |||
| 14 | sub request { | ||
| 15 | my $class = shift; | ||
| 16 | Beekeeper::JSONRPC::Request->new(@_); | ||
| 17 | } | ||
| 18 | |||
| 19 | sub notification { | ||
| 20 | my $class = shift; | ||
| 21 | Beekeeper::JSONRPC::Notification->new(@_); | ||
| 22 | } | ||
| 23 | |||
| 24 | sub response { | ||
| 25 | my $class = shift; | ||
| 26 | Beekeeper::JSONRPC::Response->new(@_); | ||
| 27 | } | ||
| 28 | |||
| 29 | sub error { | ||
| 30 | my $class = shift; | ||
| 31 | Beekeeper::JSONRPC::Error->new(@_); | ||
| 32 | } | ||
| 33 | |||
| 34 | 1; | ||
| 35 | |||
| 36 | __END__ |