File Coverage

lib/eBay/API/XML/DataType/NotificationEnableArrayType.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2              
3             package eBay::API::XML::DataType::NotificationEnableArrayType;
4              
5 1     1   1245 use strict;
  1         3  
  1         36  
6 1     1   6 use warnings;
  1         12  
  1         32  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. NotificationEnableArrayType.pm
12             # Generated by: ......... genEBayApiDataTypes.pl
13             # Last Generated: ....... 08/24/2008 16:44
14             # API Release Number: ... 579
15             #
16             ##########################################################################
17              
18             =head1 NAME
19              
20             eBay::API::XML::DataType::NotificationEnableArrayType
21              
22             =head1 DESCRIPTION
23              
24             A list of NotificationEnable entries. Each entry specifies
25             one notification and whether it is enabled.
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::DataType::NotificationEnableArrayType inherits from the L class
37              
38             =cut
39              
40 1     1   35 use eBay::API::XML::BaseDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::BaseDataType");
42              
43             use eBay::API::XML::DataType::NotificationEnableType;
44              
45              
46             my @gaProperties = ( [ 'NotificationEnable', 'ns:NotificationEnableType', '1'
47             ,'eBay::API::XML::DataType::NotificationEnableType', '1' ]
48             );
49             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
50              
51             my @gaAttributes = (
52             );
53             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
54              
55             =head1 Subroutines:
56              
57             =cut
58              
59             sub new {
60             my $classname = shift;
61             my %args = @_;
62             my $self = $classname->SUPER::new(%args);
63             return $self;
64             }
65              
66             sub isScalar {
67             return 0;
68             }
69              
70              
71              
72             =head2 setNotificationEnable()
73              
74             Specifies one notification or alert event and whether it is
75             enabled or disabled. Returned if previously set.
76              
77             Calls: SetNotificationPreferences
78             RequiredInput: No
79              
80             # Argument: reference to an array
81             of 'ns:NotificationEnableType'
82              
83             =cut
84              
85             sub setNotificationEnable {
86             my $self = shift;
87             $self->{'NotificationEnable'} =
88             $self->convertArray_To_RefToArrayIfNeeded(@_);
89             }
90              
91             =head2 getNotificationEnable()
92              
93             Calls: GetNotificationPreferences
94             Returned: Conditionally
95              
96             # Returns: reference to an array
97             of 'ns:NotificationEnableType'
98              
99             =cut
100              
101             sub getNotificationEnable {
102             my $self = shift;
103             return $self->_getDataTypeArray('NotificationEnable');
104             }
105              
106              
107              
108              
109              
110             ## Attribute and Property lists
111             sub getPropertiesList {
112             my $self = shift;
113             return \@gaProperties;
114             }
115              
116             sub getAttributesList {
117             my $self = shift;
118             return \@gaAttributes;
119             }
120              
121              
122              
123             1;