File Coverage

lib/eBay/API/XML/DataType/PictureSetMemberType.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::PictureSetMemberType;
4              
5 1     1   1271 use strict;
  1         2  
  1         34  
6 1     1   6 use warnings;
  1         2  
  1         34  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. PictureSetMemberType.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::PictureSetMemberType
21              
22             =head1 DESCRIPTION
23              
24             URL and size information for each generated and stored size.
25             This data is provided for use in application previews of pictures.
26             This data is used for display control for specific pictures in the generated imageset.
27             This container is supplied for all generated pictures.
28              
29              
30              
31             =head1 SYNOPSIS
32              
33             =cut
34              
35              
36             =head1 INHERITANCE
37              
38             eBay::API::XML::DataType::PictureSetMemberType inherits from the L class
39              
40             =cut
41              
42 1     1   62 use eBay::API::XML::BaseDataType;
  0            
  0            
43             our @ISA = ("eBay::API::XML::BaseDataType");
44              
45              
46              
47             my @gaProperties = ( [ 'MemberURL', 'xs:anyURI', '', '', '' ]
48             , [ 'PictureHeight', 'xs:int', '', '', '' ]
49             , [ 'PictureWidth', 'xs:int', '', '', '' ]
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 setMemberURL()
75              
76             URL for the picture.
77              
78             # Argument: 'xs:anyURI'
79              
80             =cut
81              
82             sub setMemberURL {
83             my $self = shift;
84             $self->{'MemberURL'} = shift
85             }
86              
87             =head2 getMemberURL()
88              
89             Calls: UploadSiteHostedPictures
90             Returned: Always
91              
92             # Returns: 'xs:anyURI'
93              
94             =cut
95              
96             sub getMemberURL {
97             my $self = shift;
98             return $self->{'MemberURL'};
99             }
100              
101              
102             =head2 setPictureHeight()
103              
104             Height of the picture in pixels.
105              
106             # Argument: 'xs:int'
107              
108             =cut
109              
110             sub setPictureHeight {
111             my $self = shift;
112             $self->{'PictureHeight'} = shift
113             }
114              
115             =head2 getPictureHeight()
116              
117             Calls: UploadSiteHostedPictures
118             Returned: Always
119              
120             # Returns: 'xs:int'
121              
122             =cut
123              
124             sub getPictureHeight {
125             my $self = shift;
126             return $self->{'PictureHeight'};
127             }
128              
129              
130             =head2 setPictureWidth()
131              
132             Width of the picture in pixels.
133              
134             # Argument: 'xs:int'
135              
136             =cut
137              
138             sub setPictureWidth {
139             my $self = shift;
140             $self->{'PictureWidth'} = shift
141             }
142              
143             =head2 getPictureWidth()
144              
145             Calls: UploadSiteHostedPictures
146             Returned: Always
147              
148             # Returns: 'xs:int'
149              
150             =cut
151              
152             sub getPictureWidth {
153             my $self = shift;
154             return $self->{'PictureWidth'};
155             }
156              
157              
158              
159              
160              
161             ## Attribute and Property lists
162             sub getPropertiesList {
163             my $self = shift;
164             return \@gaProperties;
165             }
166              
167             sub getAttributesList {
168             my $self = shift;
169             return \@gaAttributes;
170             }
171              
172              
173              
174             1;