-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbsclasses.php
73 lines (59 loc) · 1.08 KB
/
bsclasses.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
// Contains all class definitions
class BaseRO
{
public $success = true;
public $retcode = 0;
public $retmsg = "";
}
class AlbumInfo
{
public $name;
public $coverImage;
function __construct($an, $ci) {
$this->name = $an;
$this->coverImage = $ci;
}
}
class GetAlbumsRO extends BaseRO
{
public $albums = array();
}
class PublicLinkRO extends BaseRO
{
public $url = "";
}
class AlbumSummaryRO extends BaseRO
{
public $numAlbums = 0;
public $usedSpace = 0;
public $totalSpace = 0;
}
class PhotoInfo
{
public $imageUrl;
public $imageInfo; // size, name etc.
function __construct($url, $info) {
$this->imageUrl = $url;
$this->imageInfo = $info;
}
}
class GetPhotosRO extends BaseRO
{
public $albumName = "";
public $photos = array();
}
class PhotoSummaryRO extends BaseRO
{
public $albumPublicUrl = "";
public $numPics = 0;
public $usedSpace = 0;
}
class UploadedPhotoRO
{
public $imageUrl;
function __construct($url) {
$this->imageUrl = $url;
}
}
?>