RennClient.class.php
5.18 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?php
include_once ('RennClientBase.class.php');
include_once ('service/RennServiceBase.php');
include_once ('service/AlbumService.php');
include_once ('service/BlogService.php');
include_once ('service/ShareService.php');
include_once ('service/UbbService.php');
include_once ('service/NotificationService.php');
include_once ('service/FeedService.php');
include_once ('service/InvitationService.php');
include_once ('service/ProfileService.php');
include_once ('service/AppService.php');
include_once ('service/StatusService.php');
include_once ('service/LikeService.php');
include_once ('service/PhotoService.php');
include_once ('service/CommentService.php');
include_once ('service/UserService.php');
include_once ('service/FriendService.php');
class RennClient extends RennClientBase {
private $albumService;
private $blogService;
private $shareService;
private $ubbService;
private $notificationService;
private $feedService;
private $invitationService;
private $profileService;
private $appService;
private $statusService;
private $likeService;
private $photoService;
private $commentService;
private $userService;
private $friendService;
function getAlbumService() {
if (empty ($this -> albumService )) {
$this->albumService = new AlbumService ( $this, $this->accessToken );
}
return $this->albumService;
}
function getBlogService() {
if (empty ($this -> blogService )) {
$this->blogService = new BlogService ( $this, $this->accessToken );
}
return $this->blogService;
}
function getShareService() {
if (empty ($this -> shareService )) {
$this->shareService = new ShareService ( $this, $this->accessToken );
}
return $this->shareService;
}
function getUbbService() {
if (empty ($this -> ubbService )) {
$this->ubbService = new UbbService ( $this, $this->accessToken );
}
return $this->ubbService;
}
function getNotificationService() {
if (empty ($this -> notificationService )) {
$this->notificationService = new NotificationService ( $this, $this->accessToken );
}
return $this->notificationService;
}
function getFeedService() {
if (empty ($this -> feedService )) {
$this->feedService = new FeedService ( $this, $this->accessToken );
}
return $this->feedService;
}
function getInvitationService() {
if (empty ($this -> invitationService )) {
$this->invitationService = new InvitationService ( $this, $this->accessToken );
}
return $this->invitationService;
}
function getProfileService() {
if (empty ($this -> profileService )) {
$this->profileService = new ProfileService ( $this, $this->accessToken );
}
return $this->profileService;
}
function getAppService() {
if (empty ($this -> appService )) {
$this->appService = new AppService ( $this, $this->accessToken );
}
return $this->appService;
}
function getStatusService() {
if (empty ($this -> statusService )) {
$this->statusService = new StatusService ( $this, $this->accessToken );
}
return $this->statusService;
}
function getLikeService() {
if (empty ($this -> likeService )) {
$this->likeService = new LikeService ( $this, $this->accessToken );
}
return $this->likeService;
}
function getPhotoService() {
if (empty ($this -> photoService )) {
$this->photoService = new PhotoService ( $this, $this->accessToken );
}
return $this->photoService;
}
function getCommentService() {
if (empty ($this -> commentService )) {
$this->commentService = new CommentService ( $this, $this->accessToken );
}
return $this->commentService;
}
function getUserService() {
if (empty ($this -> userService )) {
$this->userService = new UserService ( $this, $this->accessToken );
}
return $this->userService;
}
function getFriendService() {
if (empty ($this -> friendService )) {
$this->friendService = new FriendService ( $this, $this->accessToken );
}
return $this->friendService;
}
}
?>