1 | <?php |
||
10 | class Stub implements ServiceInterface { |
||
11 | 1 | public function getAthlete($id = null) { |
|
15 | |||
16 | 1 | public function getAthleteStats($id) { |
|
20 | |||
21 | 1 | public function getAthleteClubs() { |
|
25 | |||
26 | 1 | public function getAthleteActivities($before = null, $after = null, $page = null, $per_page = null) { |
|
30 | |||
31 | 1 | public function getAthleteFriends($id = null, $page = null, $per_page = null) { |
|
35 | |||
36 | 1 | public function getAthleteFollowers($id = null, $page = null, $per_page = null) { |
|
40 | |||
41 | 1 | public function getAthleteBothFollowing($id, $page = null, $per_page = null) { |
|
45 | |||
46 | 1 | public function getAthleteKom($id, $page = null, $per_page = null) { |
|
50 | |||
51 | 1 | public function getAthleteStarredSegments($id = null, $page = null, $per_page = null) { |
|
55 | |||
56 | 1 | public function updateAthlete($city, $state, $country, $sex, $weight) { |
|
60 | |||
61 | 1 | public function getActivity($id, $include_all_efforts = null) { |
|
65 | |||
66 | 1 | public function getActivityComments($id, $markdown = null, $page = null, $per_page = null) { |
|
70 | |||
71 | 1 | public function getActivityKudos($id, $page = null, $per_page = null) { |
|
75 | |||
76 | 1 | public function getActivityPhotos($id, $size = 2048, $photo_sources = 'true') { |
|
80 | |||
81 | 1 | public function getActivityZones($id) { |
|
85 | |||
86 | 1 | public function getActivityLaps($id) { |
|
90 | |||
91 | 1 | public function getActivityUploadStatus($id) { |
|
95 | |||
96 | 1 | public function createActivity($name, $type, $start_date_local, $elapsed_time, $description = null, $distance = null) { |
|
100 | |||
101 | 1 | public function uploadActivity($file, $activity_type = null, $name = null, $description = null, $private = null, $trainer = null, $data_type = null, $external_id = null) { |
|
105 | |||
106 | 1 | public function updateActivity($id, $name = null, $type = null, $private = false, $commute = false, $trainer = false, $gear_id = null, $description = null) { |
|
110 | |||
111 | 1 | public function deleteActivity($id) { |
|
115 | |||
116 | 1 | public function getGear($id) { |
|
120 | |||
121 | 1 | public function getClub($id) { |
|
125 | |||
126 | 1 | public function getClubMembers($id, $page = null, $per_page = null) { |
|
130 | |||
131 | 1 | public function getClubActivities($id, $page = null, $per_page = null) { |
|
135 | |||
136 | 1 | public function getClubAnnouncements($id) { |
|
140 | |||
141 | 1 | public function getClubGroupEvents($id) { |
|
145 | |||
146 | 1 | public function joinClub($id) { |
|
150 | |||
151 | 1 | public function leaveClub($id) { |
|
155 | |||
156 | 1 | public function getSegment($id) { |
|
160 | |||
161 | 1 | public function getSegmentLeaderboard($id, $gender = null, $age_group = null, $weight_class = null, $following = null, $club_id = null, $date_range = null, $context_entries = null, $page = null, $per_page = null) { |
|
162 | 1 | $json = '{"response": 1}'; |
|
163 | 1 | return $this->format($json); |
|
164 | } |
||
165 | |||
166 | 1 | public function getSegmentExplorer($bounds, $activity_type = 'riding', $min_cat = null, $max_cat = null) { |
|
170 | |||
171 | 1 | public function getSegmentEffort($id, $athlete_id = null, $start_date_local = null, $end_date_local = null, $page = null, $per_page = null) { |
|
175 | |||
176 | 1 | public function getStreamsActivity($id, $types, $resolution = null, $series_type = 'distance') { |
|
180 | |||
181 | 1 | public function getStreamsEffort($id, $types, $resolution = null, $series_type = 'distance') { |
|
185 | |||
186 | 1 | public function getStreamsSegment($id, $types, $resolution = null, $series_type = 'distance') { |
|
190 | |||
191 | /** |
||
192 | * @param string $result |
||
193 | */ |
||
194 | 36 | private function format($result) { |
|
197 | } |
||
198 |