File Coverage

lib/eBay/API/XML/DataType/PictureManagerFolderType.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::PictureManagerFolderType;
4              
5 1     1   1111 use strict;
  1         2  
  1         34  
6 1     1   7 use warnings;
  1         1  
  1         55  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. PictureManagerFolderType.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::PictureManagerFolderType
21              
22             =head1 DESCRIPTION
23              
24             A folder in the authenticated user's album. By default, all folders and their pictures are
25             returned. If a folder ID is specified, the folders' metadata and contents are returned.
26              
27              
28              
29             =head1 SYNOPSIS
30              
31             =cut
32              
33              
34             =head1 INHERITANCE
35              
36             eBay::API::XML::DataType::PictureManagerFolderType inherits from the L class
37              
38             =cut
39              
40 1     1   45 use eBay::API::XML::BaseDataType;
  0            
  0            
41             our @ISA = ("eBay::API::XML::BaseDataType");
42              
43             use eBay::API::XML::DataType::PictureManagerPictureType;
44              
45              
46             my @gaProperties = ( [ 'FolderID', 'xs:int', '', '', '' ]
47             , [ 'Name', 'xs:string', '', '', '' ]
48             , [ 'Picture', 'ns:PictureManagerPictureType', '1'
49             ,'eBay::API::XML::DataType::PictureManagerPictureType', '1' ]
50             );
51             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
52              
53             my @gaAttributes = (
54             );
55             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
56              
57             =head1 Subroutines:
58              
59             =cut
60              
61             sub new {
62             my $classname = shift;
63             my %args = @_;
64             my $self = $classname->SUPER::new(%args);
65             return $self;
66             }
67              
68             sub isScalar {
69             return 0;
70             }
71              
72              
73              
74             =head2 setFolderID()
75              
76             The ID of the folder.
77              
78             Calls: SetPictureManagerDetails
79             RequiredInput: Yes
80              
81             # Argument: 'xs:int'
82              
83             =cut
84              
85             sub setFolderID {
86             my $self = shift;
87             $self->{'FolderID'} = shift
88             }
89              
90             =head2 getFolderID()
91              
92             Calls: GetPictureManagerDetails
93             Returned: Always
94             Details: PictureManagerDetailLevel: none, ReturnPicture, ReturnAll
95              
96             # Returns: 'xs:int'
97              
98             =cut
99              
100             sub getFolderID {
101             my $self = shift;
102             return $self->{'FolderID'};
103             }
104              
105              
106             =head2 setName()
107              
108             The name of the folder.
109              
110             MaxLength: 55
111              
112             Calls: SetPictureManagerDetails
113             RequiredInput: Yes
114              
115             # Argument: 'xs:string'
116              
117             =cut
118              
119             sub setName {
120             my $self = shift;
121             $self->{'Name'} = shift
122             }
123              
124             =head2 getName()
125              
126             Calls: GetPictureManagerDetails
127             Returned: Always
128             Details: PictureManagerDetailLevel: none, ReturnPicture, ReturnAll
129              
130             # Returns: 'xs:string'
131              
132             =cut
133              
134             sub getName {
135             my $self = shift;
136             return $self->{'Name'};
137             }
138              
139              
140             =head2 setPicture()
141              
142             A picture within the folder, identified by a name, date, URL, and other metadata.
143              
144             Calls: SetPictureManagerDetails
145             RequiredInput: Conditionally
146              
147             # Argument: reference to an array
148             of 'ns:PictureManagerPictureType'
149              
150             =cut
151              
152             sub setPicture {
153             my $self = shift;
154             $self->{'Picture'} =
155             $self->convertArray_To_RefToArrayIfNeeded(@_);
156             }
157              
158             =head2 getPicture()
159              
160             Calls: GetPictureManagerDetails
161             Returned: Conditionally
162             Details: PictureManagerDetailLevel: none, ReturnPicture, ReturnAll
163              
164             # Returns: reference to an array
165             of 'ns:PictureManagerPictureType'
166              
167             =cut
168              
169             sub getPicture {
170             my $self = shift;
171             return $self->_getDataTypeArray('Picture');
172             }
173              
174              
175              
176              
177              
178             ## Attribute and Property lists
179             sub getPropertiesList {
180             my $self = shift;
181             return \@gaProperties;
182             }
183              
184             sub getAttributesList {
185             my $self = shift;
186             return \@gaAttributes;
187             }
188              
189              
190              
191             1;