blib/lib/Net/OSCAR/MethodInfo.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
encode
2.0
BEGIN
2.0
CRAP 2.0
1 =pod
2  
3 =head1 NAME
4  
5  
6 =head1 VERSION
7  
8 version 1.928
9 Net::OSCAR::MethodInfo -- Mappings from method names to (SNAC,family). Used by
10 rate management functionality
11  
12 =cut
13  
14 package Net::OSCAR::MethodInfo;
15 BEGIN {
16 $Net::OSCAR::MethodInfo::VERSION = '1.928';
17 }
18  
19 $REVISION = '$Revision$';
20  
21 use strict;
22 use warnings;
23 use vars qw(@ISA $REVISION);
24 use Net::OSCAR::XML;
25  
26 sub encode($) {
27 my %snac = protobit_to_snac($_[0]);
28 my($family, $subtype) = ($snac{family}, $snac{subtype});
29 return pack("nn", $family, $subtype);
30 }
31  
32 our %methods = (
33 set_stealth => encode("set_extended_status"),
34 get_info => encode("get_info"),
35 get_away => encode("get_away"),
36 send_typing_status => encode("typing_notification"),
37 evil => encode("outgoing_warning"),
38 get_icon => encode("buddy_icon_download"),
39 set_extended_status => encode("set_extended_status"),
40 set_info => encode("set_info"),
41 change_password => encode("change_account_info"),
42 confirm_account => encode("confirm_account_request"),
43 change_email => encode("change_account_info"),
44 format_screenname => encode("change_account_info"),
45 set_idle => encode("set_idle"),
46 chat_join => encode("chat_navigator_room_create"),
47 chat_accept => encode("chat_invitation_accept"),
48 chat_decline => encode("chat_invitation_decline"),
49 auth_response => encode("signon"),
50 get_icq_info => encode("ICQ_meta_request"),
51 send_message => encode("outgoing_IM"),
52 svcreq => encode("service_request"),
53 send_im => encode("outgoing_IM"),
54 file_send => encode("outgoing_IM"),
55 rendezvous_revise => encode("outgoing_IM"),
56 rendezvous_reject => encode("outgoing_IM"),
57 chat_send => encode("outgoing_chat_IM")
58 );
59  
60 1;