@@ -11,45 +11,45 @@ |
||
11 | 11 | */ |
12 | 12 | class DirectionLocation extends Common |
13 | 13 | { |
14 | - /** |
|
15 | - * Direction name |
|
16 | - * @var string |
|
17 | - */ |
|
18 | - public $name; |
|
19 | - |
|
20 | - /** |
|
21 | - * Required time for passing the segment (seconds) |
|
22 | - * @var integer |
|
23 | - */ |
|
24 | - public $time; |
|
25 | - |
|
26 | - /** |
|
27 | - * Segment distance |
|
28 | - * @var double |
|
29 | - */ |
|
30 | - public $segment_distance; |
|
31 | - |
|
32 | - /** |
|
33 | - * Start Location |
|
34 | - * @var string |
|
35 | - */ |
|
36 | - public $start_location; |
|
37 | - |
|
38 | - /** |
|
39 | - * End Location |
|
40 | - * @var string |
|
41 | - */ |
|
42 | - public $end_location; |
|
43 | - |
|
44 | - /** |
|
45 | - * Directions Error |
|
46 | - * @var string |
|
47 | - */ |
|
48 | - public $directions_error; |
|
49 | - |
|
50 | - /** |
|
51 | - * Error Code |
|
52 | - * @var integer |
|
53 | - */ |
|
54 | - public $error_code; |
|
14 | + /** |
|
15 | + * Direction name |
|
16 | + * @var string |
|
17 | + */ |
|
18 | + public $name; |
|
19 | + |
|
20 | + /** |
|
21 | + * Required time for passing the segment (seconds) |
|
22 | + * @var integer |
|
23 | + */ |
|
24 | + public $time; |
|
25 | + |
|
26 | + /** |
|
27 | + * Segment distance |
|
28 | + * @var double |
|
29 | + */ |
|
30 | + public $segment_distance; |
|
31 | + |
|
32 | + /** |
|
33 | + * Start Location |
|
34 | + * @var string |
|
35 | + */ |
|
36 | + public $start_location; |
|
37 | + |
|
38 | + /** |
|
39 | + * End Location |
|
40 | + * @var string |
|
41 | + */ |
|
42 | + public $end_location; |
|
43 | + |
|
44 | + /** |
|
45 | + * Directions Error |
|
46 | + * @var string |
|
47 | + */ |
|
48 | + public $directions_error; |
|
49 | + |
|
50 | + /** |
|
51 | + * Error Code |
|
52 | + * @var integer |
|
53 | + */ |
|
54 | + public $error_code; |
|
55 | 55 | } |
@@ -11,222 +11,222 @@ |
||
11 | 11 | */ |
12 | 12 | class AddressNote extends Common |
13 | 13 | { |
14 | - /** |
|
15 | - * An unique ID of a note |
|
16 | - * @var integer |
|
17 | - */ |
|
18 | - public $note_id; |
|
19 | - |
|
20 | - /** |
|
21 | - * The route ID |
|
22 | - * @var string |
|
23 | - */ |
|
24 | - public $route_id; |
|
25 | - |
|
26 | - /** |
|
27 | - * The route destination ID |
|
28 | - * @var integer |
|
29 | - */ |
|
30 | - public $route_destination_id; |
|
31 | - |
|
32 | - /** |
|
33 | - * An unique ID of an uploaded file |
|
34 | - * @var string |
|
35 | - */ |
|
36 | - public $upload_id; |
|
37 | - |
|
38 | - /** |
|
39 | - * When the note was added |
|
40 | - * @var integer |
|
41 | - */ |
|
42 | - public $ts_added; |
|
43 | - |
|
44 | - /** |
|
45 | - * The position latitude where the address note was added |
|
46 | - * @var double |
|
47 | - */ |
|
48 | - public $lat; |
|
49 | - |
|
50 | - /** |
|
51 | - * The position longitude where the address note was added |
|
52 | - * @var double |
|
53 | - */ |
|
54 | - public $lng; |
|
55 | - |
|
56 | - /** |
|
57 | - * The activity type |
|
58 | - * @var string |
|
59 | - */ |
|
60 | - public $activity_type; |
|
61 | - |
|
62 | - /** |
|
63 | - * The note text contents |
|
64 | - * @var string |
|
65 | - */ |
|
66 | - public $contents; |
|
67 | - |
|
68 | - /** |
|
69 | - * An upload type of the note |
|
70 | - * @var string |
|
71 | - */ |
|
72 | - public $upload_type; |
|
73 | - |
|
74 | - /** |
|
75 | - * An upload url - where a file-note was uploaded. |
|
76 | - * @var string |
|
77 | - */ |
|
78 | - public $upload_url; |
|
79 | - |
|
80 | - /** |
|
81 | - * An extension of the uploaded file. |
|
82 | - * @var string |
|
83 | - */ |
|
84 | - public $upload_extension; |
|
85 | - |
|
86 | - /** |
|
87 | - * The device a note was uploaded from. |
|
88 | - * @var string |
|
89 | - */ |
|
90 | - public $device_type; |
|
91 | - |
|
92 | - /** |
|
93 | - * Array of the custom type notes. |
|
94 | - * @var CustomNoteType[] |
|
95 | - */ |
|
96 | - public $custom_types; |
|
97 | - |
|
98 | - public function __construct() |
|
99 | - { |
|
100 | - } |
|
101 | - |
|
102 | - /** |
|
103 | - * Get notes from the specified route destination.<br> |
|
104 | - * Returns an address object with notes, if an address exists, otherwise - return null. |
|
105 | - */ |
|
106 | - public static function GetAddressesNotes($noteParams) |
|
107 | - { |
|
108 | - $address = Route4Me::makeRequst([ |
|
109 | - 'url' => Endpoint::ADDRESS_V4, |
|
110 | - 'method' => 'GET', |
|
111 | - 'query' => [ |
|
112 | - 'route_id' => isset($noteParams['route_id']) ? $noteParams['route_id'] : null, |
|
113 | - 'route_destination_id' => isset($noteParams['route_destination_id']) |
|
114 | - ? $noteParams['route_destination_id'] : null, |
|
115 | - 'notes' => 1, |
|
116 | - ], |
|
117 | - ]); |
|
118 | - |
|
119 | - return $address; |
|
120 | - } |
|
121 | - |
|
122 | - public function createCustomNoteType($params) |
|
123 | - { |
|
124 | - $allBodyFields = ['type', 'values']; |
|
125 | - |
|
126 | - $result = Route4Me::makeRequst([ |
|
127 | - 'url' => Endpoint::NOTE_CUSTOM_TYPES_V4, |
|
128 | - 'method' => 'POST', |
|
129 | - 'body' => Route4Me::generateRequestParameters($allBodyFields, $params), |
|
130 | - ]); |
|
131 | - |
|
132 | - return $result; |
|
133 | - } |
|
134 | - |
|
135 | - public function removeCustomNoteType($params) |
|
136 | - { |
|
137 | - $result = Route4Me::makeRequst([ |
|
138 | - 'url' => Endpoint::NOTE_CUSTOM_TYPES_V4, |
|
139 | - 'method' => 'DELETE', |
|
140 | - 'body' => [ |
|
141 | - 'id' => isset($params['id']) ? $params['id'] : null, |
|
142 | - ], |
|
143 | - ]); |
|
144 | - |
|
145 | - return $result; |
|
146 | - } |
|
147 | - |
|
148 | - public function getAllCustomNoteTypes() |
|
149 | - { |
|
150 | - $result = Route4Me::makeRequst([ |
|
151 | - 'url' => Endpoint::NOTE_CUSTOM_TYPES_V4, |
|
152 | - 'method' => 'GET', |
|
153 | - ]); |
|
154 | - |
|
155 | - return $result; |
|
156 | - } |
|
157 | - |
|
158 | - public function getCustomNoteTypeByKey($params) |
|
159 | - { |
|
160 | - $result = Route4Me::makeRequst([ |
|
161 | - 'url' => Endpoint::NOTE_CUSTOM_TYPES_V4, |
|
162 | - 'method' => 'GET', |
|
163 | - ]); |
|
164 | - |
|
165 | - if (is_null($result) || !is_array($result)) return null; |
|
166 | - |
|
167 | - foreach ($result as $custNoteType) { |
|
168 | - if (isset($custNoteType["note_custom_type"]) && $custNoteType["note_custom_type"] == $params) { |
|
169 | - return $custNoteType; |
|
170 | - } |
|
171 | - } |
|
172 | - } |
|
173 | - |
|
174 | - public function AddAddressNote($params) |
|
175 | - { |
|
176 | - $allQueryFields = ['route_id', 'address_id', 'dev_lat', 'dev_lng', 'device_type']; |
|
177 | - $allBodyFields = ['strNoteContents', 'strUpdateType']; |
|
178 | - |
|
179 | - $result = Route4Me::makeRequst([ |
|
180 | - 'url' => Endpoint::ROUTE_NOTES_ADD, |
|
181 | - 'method' => 'POST', |
|
182 | - 'query' => Route4Me::generateRequestParameters($allQueryFields, $params), |
|
183 | - 'body' => Route4Me::generateRequestParameters($allBodyFields, $params), |
|
184 | - 'HTTPHEADER' => 'Content-Type: multipart/form-data', |
|
185 | - ]); |
|
186 | - |
|
187 | - return $result; |
|
188 | - } |
|
189 | - |
|
190 | - public function AddNoteFile($params) |
|
191 | - { |
|
192 | - $fname = isset($params['strFilename']) ? $params['strFilename'] : null; |
|
193 | - |
|
194 | - $allQueryFields = ['route_id', 'address_id', 'dev_lat', 'dev_lng', 'device_type']; |
|
195 | - $allBodyFields = ['strFilename', 'strUpdateType', 'strNoteContents']; |
|
196 | - |
|
197 | - $result = Route4Me::makeRequst([ |
|
198 | - 'url' => Endpoint::ROUTE_NOTES_ADD, |
|
199 | - 'method' => 'POST', |
|
200 | - 'query' => Route4Me::generateRequestParameters($allQueryFields, $params), |
|
201 | - 'body' => Route4Me::generateRequestParameters($allBodyFields, $params), |
|
202 | - 'FILE' => $fname, |
|
203 | - 'HTTPHEADER' => 'Content-Type: multipart/form-data' |
|
204 | - ]); |
|
205 | - |
|
206 | - return $result; |
|
207 | - } |
|
208 | - |
|
209 | - public function addCustomNoteToRoute($params) |
|
210 | - { |
|
211 | - $customArray = []; |
|
212 | - |
|
213 | - foreach ($params as $key => $value) { |
|
214 | - if (false !== strpos($key, 'custom_note_type')) { |
|
215 | - $customArray[$key] = $value; |
|
216 | - } |
|
217 | - } |
|
218 | - |
|
219 | - $allQueryFields = ['route_id', 'address_id', 'format', 'dev_lat', 'dev_lng']; |
|
220 | - $allBodyFields = ['strUpdateType', 'strUpdateType', 'strNoteContents']; |
|
221 | - |
|
222 | - $result = Route4Me::makeRequst([ |
|
223 | - 'url' => Endpoint::ROUTE_NOTES_ADD, |
|
224 | - 'method' => 'POST', |
|
225 | - 'query' => Route4Me::generateRequestParameters($allQueryFields, $params), |
|
226 | - 'body' => array_merge(Route4Me::generateRequestParameters($allBodyFields, $params), $customArray), |
|
227 | - 'HTTPHEADER' => 'Content-Type: multipart/form-data', |
|
228 | - ]); |
|
229 | - |
|
230 | - return $result; |
|
231 | - } |
|
14 | + /** |
|
15 | + * An unique ID of a note |
|
16 | + * @var integer |
|
17 | + */ |
|
18 | + public $note_id; |
|
19 | + |
|
20 | + /** |
|
21 | + * The route ID |
|
22 | + * @var string |
|
23 | + */ |
|
24 | + public $route_id; |
|
25 | + |
|
26 | + /** |
|
27 | + * The route destination ID |
|
28 | + * @var integer |
|
29 | + */ |
|
30 | + public $route_destination_id; |
|
31 | + |
|
32 | + /** |
|
33 | + * An unique ID of an uploaded file |
|
34 | + * @var string |
|
35 | + */ |
|
36 | + public $upload_id; |
|
37 | + |
|
38 | + /** |
|
39 | + * When the note was added |
|
40 | + * @var integer |
|
41 | + */ |
|
42 | + public $ts_added; |
|
43 | + |
|
44 | + /** |
|
45 | + * The position latitude where the address note was added |
|
46 | + * @var double |
|
47 | + */ |
|
48 | + public $lat; |
|
49 | + |
|
50 | + /** |
|
51 | + * The position longitude where the address note was added |
|
52 | + * @var double |
|
53 | + */ |
|
54 | + public $lng; |
|
55 | + |
|
56 | + /** |
|
57 | + * The activity type |
|
58 | + * @var string |
|
59 | + */ |
|
60 | + public $activity_type; |
|
61 | + |
|
62 | + /** |
|
63 | + * The note text contents |
|
64 | + * @var string |
|
65 | + */ |
|
66 | + public $contents; |
|
67 | + |
|
68 | + /** |
|
69 | + * An upload type of the note |
|
70 | + * @var string |
|
71 | + */ |
|
72 | + public $upload_type; |
|
73 | + |
|
74 | + /** |
|
75 | + * An upload url - where a file-note was uploaded. |
|
76 | + * @var string |
|
77 | + */ |
|
78 | + public $upload_url; |
|
79 | + |
|
80 | + /** |
|
81 | + * An extension of the uploaded file. |
|
82 | + * @var string |
|
83 | + */ |
|
84 | + public $upload_extension; |
|
85 | + |
|
86 | + /** |
|
87 | + * The device a note was uploaded from. |
|
88 | + * @var string |
|
89 | + */ |
|
90 | + public $device_type; |
|
91 | + |
|
92 | + /** |
|
93 | + * Array of the custom type notes. |
|
94 | + * @var CustomNoteType[] |
|
95 | + */ |
|
96 | + public $custom_types; |
|
97 | + |
|
98 | + public function __construct() |
|
99 | + { |
|
100 | + } |
|
101 | + |
|
102 | + /** |
|
103 | + * Get notes from the specified route destination.<br> |
|
104 | + * Returns an address object with notes, if an address exists, otherwise - return null. |
|
105 | + */ |
|
106 | + public static function GetAddressesNotes($noteParams) |
|
107 | + { |
|
108 | + $address = Route4Me::makeRequst([ |
|
109 | + 'url' => Endpoint::ADDRESS_V4, |
|
110 | + 'method' => 'GET', |
|
111 | + 'query' => [ |
|
112 | + 'route_id' => isset($noteParams['route_id']) ? $noteParams['route_id'] : null, |
|
113 | + 'route_destination_id' => isset($noteParams['route_destination_id']) |
|
114 | + ? $noteParams['route_destination_id'] : null, |
|
115 | + 'notes' => 1, |
|
116 | + ], |
|
117 | + ]); |
|
118 | + |
|
119 | + return $address; |
|
120 | + } |
|
121 | + |
|
122 | + public function createCustomNoteType($params) |
|
123 | + { |
|
124 | + $allBodyFields = ['type', 'values']; |
|
125 | + |
|
126 | + $result = Route4Me::makeRequst([ |
|
127 | + 'url' => Endpoint::NOTE_CUSTOM_TYPES_V4, |
|
128 | + 'method' => 'POST', |
|
129 | + 'body' => Route4Me::generateRequestParameters($allBodyFields, $params), |
|
130 | + ]); |
|
131 | + |
|
132 | + return $result; |
|
133 | + } |
|
134 | + |
|
135 | + public function removeCustomNoteType($params) |
|
136 | + { |
|
137 | + $result = Route4Me::makeRequst([ |
|
138 | + 'url' => Endpoint::NOTE_CUSTOM_TYPES_V4, |
|
139 | + 'method' => 'DELETE', |
|
140 | + 'body' => [ |
|
141 | + 'id' => isset($params['id']) ? $params['id'] : null, |
|
142 | + ], |
|
143 | + ]); |
|
144 | + |
|
145 | + return $result; |
|
146 | + } |
|
147 | + |
|
148 | + public function getAllCustomNoteTypes() |
|
149 | + { |
|
150 | + $result = Route4Me::makeRequst([ |
|
151 | + 'url' => Endpoint::NOTE_CUSTOM_TYPES_V4, |
|
152 | + 'method' => 'GET', |
|
153 | + ]); |
|
154 | + |
|
155 | + return $result; |
|
156 | + } |
|
157 | + |
|
158 | + public function getCustomNoteTypeByKey($params) |
|
159 | + { |
|
160 | + $result = Route4Me::makeRequst([ |
|
161 | + 'url' => Endpoint::NOTE_CUSTOM_TYPES_V4, |
|
162 | + 'method' => 'GET', |
|
163 | + ]); |
|
164 | + |
|
165 | + if (is_null($result) || !is_array($result)) return null; |
|
166 | + |
|
167 | + foreach ($result as $custNoteType) { |
|
168 | + if (isset($custNoteType["note_custom_type"]) && $custNoteType["note_custom_type"] == $params) { |
|
169 | + return $custNoteType; |
|
170 | + } |
|
171 | + } |
|
172 | + } |
|
173 | + |
|
174 | + public function AddAddressNote($params) |
|
175 | + { |
|
176 | + $allQueryFields = ['route_id', 'address_id', 'dev_lat', 'dev_lng', 'device_type']; |
|
177 | + $allBodyFields = ['strNoteContents', 'strUpdateType']; |
|
178 | + |
|
179 | + $result = Route4Me::makeRequst([ |
|
180 | + 'url' => Endpoint::ROUTE_NOTES_ADD, |
|
181 | + 'method' => 'POST', |
|
182 | + 'query' => Route4Me::generateRequestParameters($allQueryFields, $params), |
|
183 | + 'body' => Route4Me::generateRequestParameters($allBodyFields, $params), |
|
184 | + 'HTTPHEADER' => 'Content-Type: multipart/form-data', |
|
185 | + ]); |
|
186 | + |
|
187 | + return $result; |
|
188 | + } |
|
189 | + |
|
190 | + public function AddNoteFile($params) |
|
191 | + { |
|
192 | + $fname = isset($params['strFilename']) ? $params['strFilename'] : null; |
|
193 | + |
|
194 | + $allQueryFields = ['route_id', 'address_id', 'dev_lat', 'dev_lng', 'device_type']; |
|
195 | + $allBodyFields = ['strFilename', 'strUpdateType', 'strNoteContents']; |
|
196 | + |
|
197 | + $result = Route4Me::makeRequst([ |
|
198 | + 'url' => Endpoint::ROUTE_NOTES_ADD, |
|
199 | + 'method' => 'POST', |
|
200 | + 'query' => Route4Me::generateRequestParameters($allQueryFields, $params), |
|
201 | + 'body' => Route4Me::generateRequestParameters($allBodyFields, $params), |
|
202 | + 'FILE' => $fname, |
|
203 | + 'HTTPHEADER' => 'Content-Type: multipart/form-data' |
|
204 | + ]); |
|
205 | + |
|
206 | + return $result; |
|
207 | + } |
|
208 | + |
|
209 | + public function addCustomNoteToRoute($params) |
|
210 | + { |
|
211 | + $customArray = []; |
|
212 | + |
|
213 | + foreach ($params as $key => $value) { |
|
214 | + if (false !== strpos($key, 'custom_note_type')) { |
|
215 | + $customArray[$key] = $value; |
|
216 | + } |
|
217 | + } |
|
218 | + |
|
219 | + $allQueryFields = ['route_id', 'address_id', 'format', 'dev_lat', 'dev_lng']; |
|
220 | + $allBodyFields = ['strUpdateType', 'strUpdateType', 'strNoteContents']; |
|
221 | + |
|
222 | + $result = Route4Me::makeRequst([ |
|
223 | + 'url' => Endpoint::ROUTE_NOTES_ADD, |
|
224 | + 'method' => 'POST', |
|
225 | + 'query' => Route4Me::generateRequestParameters($allQueryFields, $params), |
|
226 | + 'body' => array_merge(Route4Me::generateRequestParameters($allBodyFields, $params), $customArray), |
|
227 | + 'HTTPHEADER' => 'Content-Type: multipart/form-data', |
|
228 | + ]); |
|
229 | + |
|
230 | + return $result; |
|
231 | + } |
|
232 | 232 | } |
@@ -9,8 +9,8 @@ |
||
9 | 9 | */ |
10 | 10 | class AddressNoteResponse extends Common |
11 | 11 | { |
12 | - public $status; |
|
13 | - public $note_id; |
|
14 | - public $upload_id; |
|
15 | - public $note; |
|
12 | + public $status; |
|
13 | + public $note_id; |
|
14 | + public $upload_id; |
|
15 | + public $note; |
|
16 | 16 | } |
@@ -10,24 +10,24 @@ |
||
10 | 10 | */ |
11 | 11 | class ScheduleCalendarResponse extends Common |
12 | 12 | { |
13 | - /** |
|
14 | - * The address book contact quantity by dates |
|
15 | - * (dates are in the string format, e.g. 2020-10-18). |
|
16 | - * @var array |
|
17 | - */ |
|
18 | - public $address_book = []; |
|
13 | + /** |
|
14 | + * The address book contact quantity by dates |
|
15 | + * (dates are in the string format, e.g. 2020-10-18). |
|
16 | + * @var array |
|
17 | + */ |
|
18 | + public $address_book = []; |
|
19 | 19 | |
20 | - /* |
|
20 | + /* |
|
21 | 21 | * The order quantity by dates |
22 | 22 | * (dates are in the string format, e.g. 2020-10-18). |
23 | 23 | * @var array |
24 | 24 | */ |
25 | - public $orders = []; |
|
25 | + public $orders = []; |
|
26 | 26 | |
27 | - /* |
|
27 | + /* |
|
28 | 28 | * The order quantity by dates |
29 | 29 | * (dates are in the string format, e.g. 2020-10-18). |
30 | 30 | * @var array |
31 | 31 | */ |
32 | - public $routes_count = []; |
|
32 | + public $routes_count = []; |
|
33 | 33 | } |
@@ -7,29 +7,29 @@ |
||
7 | 7 | */ |
8 | 8 | class TelematicsRegisterMemberResponse extends \Route4Me\Common |
9 | 9 | { |
10 | - /** |
|
11 | - * API token |
|
12 | - * Use for the operations: |
|
13 | - * Get Telematics Connections, Register Telematics Connection |
|
14 | - * @var type string |
|
15 | - */ |
|
16 | - public $api_token; |
|
10 | + /** |
|
11 | + * API token |
|
12 | + * Use for the operations: |
|
13 | + * Get Telematics Connections, Register Telematics Connection |
|
14 | + * @var type string |
|
15 | + */ |
|
16 | + public $api_token; |
|
17 | 17 | |
18 | - /** |
|
19 | - * When the registered member updated |
|
20 | - * @var type string |
|
21 | - */ |
|
22 | - public $updated_at; |
|
18 | + /** |
|
19 | + * When the registered member updated |
|
20 | + * @var type string |
|
21 | + */ |
|
22 | + public $updated_at; |
|
23 | 23 | |
24 | - /** |
|
25 | - * When the registered member created |
|
26 | - * @var type |
|
27 | - */ |
|
28 | - public $created_at; |
|
24 | + /** |
|
25 | + * When the registered member created |
|
26 | + * @var type |
|
27 | + */ |
|
28 | + public $created_at; |
|
29 | 29 | |
30 | - /** |
|
31 | - * Telemetics member ID |
|
32 | - * @var type |
|
33 | - */ |
|
34 | - public $id; |
|
30 | + /** |
|
31 | + * Telemetics member ID |
|
32 | + * @var type |
|
33 | + */ |
|
34 | + public $id; |
|
35 | 35 | } |
@@ -7,99 +7,99 @@ |
||
7 | 7 | |
8 | 8 | class CreateConnectionResponse extends Common |
9 | 9 | { |
10 | - /** |
|
11 | - * Telematics connection access account_id |
|
12 | - * @var string |
|
13 | - */ |
|
14 | - public $account_id; |
|
15 | - |
|
16 | - /** |
|
17 | - * Telematics connection access api_key |
|
18 | - * @var string |
|
19 | - */ |
|
20 | - public $api_key; |
|
21 | - |
|
22 | - /** |
|
23 | - * Telematics connection access token |
|
24 | - * @var string |
|
25 | - */ |
|
26 | - public $connection_token; |
|
27 | - |
|
28 | - /** |
|
29 | - * When the connection created |
|
30 | - * @var string |
|
31 | - */ |
|
32 | - public $created_at; |
|
33 | - |
|
34 | - /** |
|
35 | - * Telemetics connection ID |
|
36 | - * @var integer |
|
37 | - */ |
|
38 | - public $id; |
|
39 | - |
|
40 | - /** |
|
41 | - * Metadata, custom key-value storage. |
|
42 | - * @var array |
|
43 | - */ |
|
44 | - public $metadata; |
|
45 | - |
|
46 | - /** |
|
47 | - * Telemetics connection name |
|
48 | - * @var string |
|
49 | - */ |
|
50 | - public $name; |
|
51 | - |
|
52 | - /** |
|
53 | - * Telematics connection access password |
|
54 | - * @var string |
|
55 | - */ |
|
56 | - public $password; |
|
57 | - |
|
58 | - /** |
|
59 | - * Synchronized vehicles number |
|
60 | - * @var integer |
|
61 | - */ |
|
62 | - public $synced_vehicles_count; |
|
63 | - |
|
64 | - /** |
|
65 | - * Total vehicles number |
|
66 | - * @var integer |
|
67 | - */ |
|
68 | - public $total_vehicles_count; |
|
69 | - |
|
70 | - /** |
|
71 | - * When the connection updated |
|
72 | - * @var string |
|
73 | - */ |
|
74 | - public $updated_at; |
|
75 | - |
|
76 | - /** |
|
77 | - * Connection user ID |
|
78 | - * @var integer |
|
79 | - */ |
|
80 | - public $user_id; |
|
81 | - |
|
82 | - /** |
|
83 | - * Telematics connection access username |
|
84 | - * @var string |
|
85 | - */ |
|
86 | - public $username; |
|
87 | - |
|
88 | - /** |
|
89 | - * Vehicle tracking interval in seconds. |
|
90 | - * @var integer |
|
91 | - */ |
|
92 | - public $vehicle_position_refresh_rate; |
|
93 | - |
|
94 | - /** |
|
95 | - * Telemetics connection vendor |
|
96 | - * @var string |
|
97 | - */ |
|
98 | - public $vendor ; |
|
99 | - |
|
100 | - /** |
|
101 | - * Telemetics connection type ID |
|
102 | - * @var integer |
|
103 | - */ |
|
104 | - public $vendor_id ; |
|
10 | + /** |
|
11 | + * Telematics connection access account_id |
|
12 | + * @var string |
|
13 | + */ |
|
14 | + public $account_id; |
|
15 | + |
|
16 | + /** |
|
17 | + * Telematics connection access api_key |
|
18 | + * @var string |
|
19 | + */ |
|
20 | + public $api_key; |
|
21 | + |
|
22 | + /** |
|
23 | + * Telematics connection access token |
|
24 | + * @var string |
|
25 | + */ |
|
26 | + public $connection_token; |
|
27 | + |
|
28 | + /** |
|
29 | + * When the connection created |
|
30 | + * @var string |
|
31 | + */ |
|
32 | + public $created_at; |
|
33 | + |
|
34 | + /** |
|
35 | + * Telemetics connection ID |
|
36 | + * @var integer |
|
37 | + */ |
|
38 | + public $id; |
|
39 | + |
|
40 | + /** |
|
41 | + * Metadata, custom key-value storage. |
|
42 | + * @var array |
|
43 | + */ |
|
44 | + public $metadata; |
|
45 | + |
|
46 | + /** |
|
47 | + * Telemetics connection name |
|
48 | + * @var string |
|
49 | + */ |
|
50 | + public $name; |
|
51 | + |
|
52 | + /** |
|
53 | + * Telematics connection access password |
|
54 | + * @var string |
|
55 | + */ |
|
56 | + public $password; |
|
57 | + |
|
58 | + /** |
|
59 | + * Synchronized vehicles number |
|
60 | + * @var integer |
|
61 | + */ |
|
62 | + public $synced_vehicles_count; |
|
63 | + |
|
64 | + /** |
|
65 | + * Total vehicles number |
|
66 | + * @var integer |
|
67 | + */ |
|
68 | + public $total_vehicles_count; |
|
69 | + |
|
70 | + /** |
|
71 | + * When the connection updated |
|
72 | + * @var string |
|
73 | + */ |
|
74 | + public $updated_at; |
|
75 | + |
|
76 | + /** |
|
77 | + * Connection user ID |
|
78 | + * @var integer |
|
79 | + */ |
|
80 | + public $user_id; |
|
81 | + |
|
82 | + /** |
|
83 | + * Telematics connection access username |
|
84 | + * @var string |
|
85 | + */ |
|
86 | + public $username; |
|
87 | + |
|
88 | + /** |
|
89 | + * Vehicle tracking interval in seconds. |
|
90 | + * @var integer |
|
91 | + */ |
|
92 | + public $vehicle_position_refresh_rate; |
|
93 | + |
|
94 | + /** |
|
95 | + * Telemetics connection vendor |
|
96 | + * @var string |
|
97 | + */ |
|
98 | + public $vendor ; |
|
99 | + |
|
100 | + /** |
|
101 | + * Telemetics connection type ID |
|
102 | + * @var integer |
|
103 | + */ |
|
104 | + public $vendor_id ; |
|
105 | 105 | } |
@@ -11,266 +11,266 @@ |
||
11 | 11 | */ |
12 | 12 | class TelematicsConnection extends \Route4Me\Common |
13 | 13 | { |
14 | - /** |
|
15 | - * Telematics connection access account_id |
|
16 | - * @var string |
|
17 | - */ |
|
18 | - public $account_id; |
|
14 | + /** |
|
15 | + * Telematics connection access account_id |
|
16 | + * @var string |
|
17 | + */ |
|
18 | + public $account_id; |
|
19 | 19 | |
20 | - /** |
|
21 | - * Telematics connection access username |
|
22 | - * @var string |
|
23 | - */ |
|
24 | - public $username; |
|
20 | + /** |
|
21 | + * Telematics connection access username |
|
22 | + * @var string |
|
23 | + */ |
|
24 | + public $username; |
|
25 | 25 | |
26 | - /** |
|
27 | - * Telematics connection access password |
|
28 | - * @var string |
|
29 | - */ |
|
30 | - public $password; |
|
26 | + /** |
|
27 | + * Telematics connection access password |
|
28 | + * @var string |
|
29 | + */ |
|
30 | + public $password; |
|
31 | 31 | |
32 | - /** |
|
33 | - * Telematics connection access host |
|
34 | - * @var string |
|
35 | - */ |
|
36 | - public $host; |
|
32 | + /** |
|
33 | + * Telematics connection access host |
|
34 | + * @var string |
|
35 | + */ |
|
36 | + public $host; |
|
37 | 37 | |
38 | - /** |
|
39 | - * Telematics connection access api_key |
|
40 | - * @var string |
|
41 | - */ |
|
42 | - public $api_key; |
|
38 | + /** |
|
39 | + * Telematics connection access api_key |
|
40 | + * @var string |
|
41 | + */ |
|
42 | + public $api_key; |
|
43 | 43 | |
44 | - /** |
|
45 | - * Telemetics connection type ID |
|
46 | - * @var integer |
|
47 | - */ |
|
48 | - public $vendor_id; |
|
44 | + /** |
|
45 | + * Telemetics connection type ID |
|
46 | + * @var integer |
|
47 | + */ |
|
48 | + public $vendor_id; |
|
49 | 49 | |
50 | - /** |
|
51 | - * Telemetics connection name |
|
52 | - * @var string |
|
53 | - */ |
|
54 | - public $name; |
|
50 | + /** |
|
51 | + * Telemetics connection name |
|
52 | + * @var string |
|
53 | + */ |
|
54 | + public $name; |
|
55 | 55 | |
56 | - /** |
|
57 | - * Vehicle tracking interval in seconds. |
|
58 | - * @var integer |
|
59 | - */ |
|
60 | - public $vehicle_position_refresh_rate; |
|
56 | + /** |
|
57 | + * Vehicle tracking interval in seconds. |
|
58 | + * @var integer |
|
59 | + */ |
|
60 | + public $vehicle_position_refresh_rate; |
|
61 | 61 | |
62 | - /** |
|
63 | - * Maximum idle time |
|
64 | - * @var integer |
|
65 | - */ |
|
66 | - public $max_idle_time; |
|
62 | + /** |
|
63 | + * Maximum idle time |
|
64 | + * @var integer |
|
65 | + */ |
|
66 | + public $max_idle_time; |
|
67 | 67 | |
68 | - /** |
|
69 | - * Disable/enable vehicle tracking |
|
70 | - * @var integer |
|
71 | - */ |
|
72 | - public $is_enabled; |
|
68 | + /** |
|
69 | + * Disable/enable vehicle tracking |
|
70 | + * @var integer |
|
71 | + */ |
|
72 | + public $is_enabled; |
|
73 | 73 | |
74 | - /** |
|
75 | - * The last timestamp, when the vehicles reloaded. |
|
76 | - * @var integer |
|
77 | - */ |
|
78 | - public $last_vehicles_reload; |
|
74 | + /** |
|
75 | + * The last timestamp, when the vehicles reloaded. |
|
76 | + * @var integer |
|
77 | + */ |
|
78 | + public $last_vehicles_reload; |
|
79 | 79 | |
80 | - /** |
|
81 | - * The last timestamp, when the addresses reloaded. |
|
82 | - * @var integer |
|
83 | - */ |
|
84 | - public $last_addresses_reload; |
|
80 | + /** |
|
81 | + * The last timestamp, when the addresses reloaded. |
|
82 | + * @var integer |
|
83 | + */ |
|
84 | + public $last_addresses_reload; |
|
85 | 85 | |
86 | - /** |
|
87 | - * The last timestamp, when the positions reloaded. |
|
88 | - * @var integer |
|
89 | - */ |
|
90 | - public $last_position_reload; |
|
86 | + /** |
|
87 | + * The last timestamp, when the positions reloaded. |
|
88 | + * @var integer |
|
89 | + */ |
|
90 | + public $last_position_reload; |
|
91 | 91 | |
92 | - /** |
|
93 | - * Telematics connection access token |
|
94 | - * @var string |
|
95 | - */ |
|
96 | - public $connection_token; |
|
92 | + /** |
|
93 | + * Telematics connection access token |
|
94 | + * @var string |
|
95 | + */ |
|
96 | + public $connection_token; |
|
97 | 97 | |
98 | - /** |
|
99 | - * Connection user ID |
|
100 | - * @var integer |
|
101 | - */ |
|
102 | - public $user_id; |
|
98 | + /** |
|
99 | + * Connection user ID |
|
100 | + * @var integer |
|
101 | + */ |
|
102 | + public $user_id; |
|
103 | 103 | |
104 | - /** |
|
105 | - * When the connection updated |
|
106 | - * @var string |
|
107 | - */ |
|
108 | - public $updated_at; |
|
104 | + /** |
|
105 | + * When the connection updated |
|
106 | + * @var string |
|
107 | + */ |
|
108 | + public $updated_at; |
|
109 | 109 | |
110 | - /** |
|
111 | - * When the connection created |
|
112 | - * @var string |
|
113 | - */ |
|
114 | - public $created_at; |
|
110 | + /** |
|
111 | + * When the connection created |
|
112 | + * @var string |
|
113 | + */ |
|
114 | + public $created_at; |
|
115 | 115 | |
116 | - /** |
|
117 | - * Telemetics connection ID |
|
118 | - * @var integer |
|
119 | - */ |
|
120 | - public $id; |
|
116 | + /** |
|
117 | + * Telemetics connection ID |
|
118 | + * @var integer |
|
119 | + */ |
|
120 | + public $id; |
|
121 | 121 | |
122 | - /** |
|
123 | - * Metadata, custom key-value storage. |
|
124 | - * @var array |
|
125 | - */ |
|
126 | - public $metadata; |
|
122 | + /** |
|
123 | + * Metadata, custom key-value storage. |
|
124 | + * @var array |
|
125 | + */ |
|
126 | + public $metadata; |
|
127 | 127 | |
128 | - /** |
|
129 | - * Total vehicles number |
|
130 | - * @var integer |
|
131 | - */ |
|
132 | - public $total_vehicles_count; |
|
128 | + /** |
|
129 | + * Total vehicles number |
|
130 | + * @var integer |
|
131 | + */ |
|
132 | + public $total_vehicles_count; |
|
133 | 133 | |
134 | - /** |
|
135 | - * Total addresses number |
|
136 | - * @var integer |
|
137 | - */ |
|
138 | - public $total_addresses_count; |
|
134 | + /** |
|
135 | + * Total addresses number |
|
136 | + * @var integer |
|
137 | + */ |
|
138 | + public $total_addresses_count; |
|
139 | 139 | |
140 | - /** |
|
141 | - * Synchronized vehicles number |
|
142 | - * @var integer |
|
143 | - */ |
|
144 | - public $synced_vehicles_count; |
|
140 | + /** |
|
141 | + * Synchronized vehicles number |
|
142 | + * @var integer |
|
143 | + */ |
|
144 | + public $synced_vehicles_count; |
|
145 | 145 | |
146 | - /** |
|
147 | - * Telemetics connection vendor |
|
148 | - * @var string |
|
149 | - */ |
|
150 | - public $vendor; |
|
146 | + /** |
|
147 | + * Telemetics connection vendor |
|
148 | + * @var string |
|
149 | + */ |
|
150 | + public $vendor; |
|
151 | 151 | |
152 | - /** |
|
153 | - * Validate connections credentials.<br> |
|
154 | - * If true, the connection validated. |
|
155 | - * @var Boolean |
|
156 | - */ |
|
157 | - public $validate_remote_credentials; |
|
152 | + /** |
|
153 | + * Validate connections credentials.<br> |
|
154 | + * If true, the connection validated. |
|
155 | + * @var Boolean |
|
156 | + */ |
|
157 | + public $validate_remote_credentials; |
|
158 | 158 | |
159 | - /** |
|
160 | - * Create a telematics connection. |
|
161 | - * @param $apiToken string : API token |
|
162 | - * @param $params TelematicsConnectionParameters : Telematics connection parameters |
|
163 | - * @return array Array from a TelematicsConnection type object |
|
164 | - * @throws \Route4Me\Exception\ApiError |
|
165 | - */ |
|
166 | - public function createTelematicsConnection($apiToken, $params) |
|
167 | - { |
|
168 | - Route4Me::setBaseUrl(Endpoint::BASE_URL); |
|
159 | + /** |
|
160 | + * Create a telematics connection. |
|
161 | + * @param $apiToken string : API token |
|
162 | + * @param $params TelematicsConnectionParameters : Telematics connection parameters |
|
163 | + * @return array Array from a TelematicsConnection type object |
|
164 | + * @throws \Route4Me\Exception\ApiError |
|
165 | + */ |
|
166 | + public function createTelematicsConnection($apiToken, $params) |
|
167 | + { |
|
168 | + Route4Me::setBaseUrl(Endpoint::BASE_URL); |
|
169 | 169 | |
170 | - $excludeFields = ['id', 'connection_token']; |
|
170 | + $excludeFields = ['id', 'connection_token']; |
|
171 | 171 | |
172 | - $allBodyFields = Route4Me::getObjectProperties(new TelematicsConnectionParameters(), $excludeFields); |
|
172 | + $allBodyFields = Route4Me::getObjectProperties(new TelematicsConnectionParameters(), $excludeFields); |
|
173 | 173 | |
174 | - $result = Route4Me::makeRequst([ |
|
175 | - 'url' => Endpoint::TELEMATICS_CONNECTION, |
|
176 | - 'method' => 'POST', |
|
177 | - 'body' => Route4Me::generateRequestParameters($allBodyFields, $params), |
|
178 | - 'query' => ['api_token' => $apiToken], |
|
179 | - 'HTTPHEADER' => 'Content-Type: multipart/form-data', |
|
180 | - ]); |
|
174 | + $result = Route4Me::makeRequst([ |
|
175 | + 'url' => Endpoint::TELEMATICS_CONNECTION, |
|
176 | + 'method' => 'POST', |
|
177 | + 'body' => Route4Me::generateRequestParameters($allBodyFields, $params), |
|
178 | + 'query' => ['api_token' => $apiToken], |
|
179 | + 'HTTPHEADER' => 'Content-Type: multipart/form-data', |
|
180 | + ]); |
|
181 | 181 | |
182 | - return $result; |
|
183 | - } |
|
182 | + return $result; |
|
183 | + } |
|
184 | 184 | |
185 | - /** |
|
186 | - * Delete a telematics connection. |
|
187 | - * @param $apiToken string : API token |
|
188 | - * @param $connectionToken string : connection token |
|
189 | - * @return array Array from a TelematicsConnection type object |
|
190 | - * @throws \Route4Me\Exception\ApiError |
|
191 | - */ |
|
192 | - public function deleteTelematicsConnection($apiToken, $connectionToken) |
|
193 | - { |
|
194 | - Route4Me::setBaseUrl(Endpoint::BASE_URL); |
|
185 | + /** |
|
186 | + * Delete a telematics connection. |
|
187 | + * @param $apiToken string : API token |
|
188 | + * @param $connectionToken string : connection token |
|
189 | + * @return array Array from a TelematicsConnection type object |
|
190 | + * @throws \Route4Me\Exception\ApiError |
|
191 | + */ |
|
192 | + public function deleteTelematicsConnection($apiToken, $connectionToken) |
|
193 | + { |
|
194 | + Route4Me::setBaseUrl(Endpoint::BASE_URL); |
|
195 | 195 | |
196 | - $result = Route4Me::makeRequst([ |
|
197 | - 'url' => Endpoint::TELEMATICS_CONNECTION, |
|
198 | - 'method' => 'DELETE', |
|
199 | - 'query' => [ |
|
200 | - 'api_token' => $apiToken, |
|
201 | - 'connection_token' => $connectionToken |
|
202 | - ], |
|
203 | - ]); |
|
196 | + $result = Route4Me::makeRequst([ |
|
197 | + 'url' => Endpoint::TELEMATICS_CONNECTION, |
|
198 | + 'method' => 'DELETE', |
|
199 | + 'query' => [ |
|
200 | + 'api_token' => $apiToken, |
|
201 | + 'connection_token' => $connectionToken |
|
202 | + ], |
|
203 | + ]); |
|
204 | 204 | |
205 | - return $result; |
|
206 | - } |
|
205 | + return $result; |
|
206 | + } |
|
207 | 207 | |
208 | - /** |
|
209 | - * Get all telematics connections. |
|
210 | - * @param $apiToken string : API token |
|
211 | - * @return array Array of the TelematicsConnection type objects |
|
212 | - * @throws \Route4Me\Exception\ApiError |
|
213 | - */ |
|
214 | - public function getTelematicsConnections($apiToken) |
|
215 | - { |
|
216 | - Route4Me::setBaseUrl(Endpoint::BASE_URL); |
|
208 | + /** |
|
209 | + * Get all telematics connections. |
|
210 | + * @param $apiToken string : API token |
|
211 | + * @return array Array of the TelematicsConnection type objects |
|
212 | + * @throws \Route4Me\Exception\ApiError |
|
213 | + */ |
|
214 | + public function getTelematicsConnections($apiToken) |
|
215 | + { |
|
216 | + Route4Me::setBaseUrl(Endpoint::BASE_URL); |
|
217 | 217 | |
218 | - $result = Route4Me::makeRequst([ |
|
219 | - 'url' => Endpoint::TELEMATICS_CONNECTION, |
|
220 | - 'method' => 'GET', |
|
221 | - 'query' => [ |
|
222 | - 'api_token' => $apiToken |
|
223 | - ], |
|
224 | - ]); |
|
218 | + $result = Route4Me::makeRequst([ |
|
219 | + 'url' => Endpoint::TELEMATICS_CONNECTION, |
|
220 | + 'method' => 'GET', |
|
221 | + 'query' => [ |
|
222 | + 'api_token' => $apiToken |
|
223 | + ], |
|
224 | + ]); |
|
225 | 225 | |
226 | - return $result; |
|
227 | - } |
|
226 | + return $result; |
|
227 | + } |
|
228 | 228 | |
229 | - /** |
|
230 | - * Get a telematics connection |
|
231 | - * @param $apiToken string : API token |
|
232 | - * @param $connectionToken string : connection token |
|
233 | - * @return array Array from a TelematicsConnection type object |
|
234 | - * @throws \Route4Me\Exception\ApiError |
|
235 | - */ |
|
236 | - public function getTelematicsConnection($apiToken, $connectionToken) |
|
237 | - { |
|
238 | - Route4Me::setBaseUrl(Endpoint::BASE_URL); |
|
229 | + /** |
|
230 | + * Get a telematics connection |
|
231 | + * @param $apiToken string : API token |
|
232 | + * @param $connectionToken string : connection token |
|
233 | + * @return array Array from a TelematicsConnection type object |
|
234 | + * @throws \Route4Me\Exception\ApiError |
|
235 | + */ |
|
236 | + public function getTelematicsConnection($apiToken, $connectionToken) |
|
237 | + { |
|
238 | + Route4Me::setBaseUrl(Endpoint::BASE_URL); |
|
239 | 239 | |
240 | - $result = Route4Me::makeRequst([ |
|
241 | - 'url' => Endpoint::TELEMATICS_CONNECTION, |
|
242 | - 'method' => 'GET', |
|
243 | - 'query' => [ |
|
244 | - 'api_token' => $apiToken, |
|
245 | - 'connection_token' => $connectionToken |
|
246 | - ], |
|
247 | - ]); |
|
240 | + $result = Route4Me::makeRequst([ |
|
241 | + 'url' => Endpoint::TELEMATICS_CONNECTION, |
|
242 | + 'method' => 'GET', |
|
243 | + 'query' => [ |
|
244 | + 'api_token' => $apiToken, |
|
245 | + 'connection_token' => $connectionToken |
|
246 | + ], |
|
247 | + ]); |
|
248 | 248 | |
249 | - return $result; |
|
250 | - } |
|
249 | + return $result; |
|
250 | + } |
|
251 | 251 | |
252 | - /** |
|
253 | - * Update telematics connection |
|
254 | - * @param $apiToken string : API token |
|
255 | - * @param $connectionToken string : connection token |
|
256 | - * @param $teleConParams TelematicsConnectionParameters : Telematics connection parameters |
|
257 | - * @return array Array from a TelematicsConnection type object |
|
258 | - * @throws \Route4Me\Exception\ApiError |
|
259 | - */ |
|
260 | - public function updateTelematicsConnection($apiToken, $connectionToken, $teleConParams) |
|
261 | - { |
|
262 | - $excludeFields = ['id', 'connection_token']; |
|
252 | + /** |
|
253 | + * Update telematics connection |
|
254 | + * @param $apiToken string : API token |
|
255 | + * @param $connectionToken string : connection token |
|
256 | + * @param $teleConParams TelematicsConnectionParameters : Telematics connection parameters |
|
257 | + * @return array Array from a TelematicsConnection type object |
|
258 | + * @throws \Route4Me\Exception\ApiError |
|
259 | + */ |
|
260 | + public function updateTelematicsConnection($apiToken, $connectionToken, $teleConParams) |
|
261 | + { |
|
262 | + $excludeFields = ['id', 'connection_token']; |
|
263 | 263 | |
264 | - $allBodyFields = Route4Me::getObjectProperties(new TelematicsConnectionParameters(), $excludeFields); |
|
264 | + $allBodyFields = Route4Me::getObjectProperties(new TelematicsConnectionParameters(), $excludeFields); |
|
265 | 265 | |
266 | - $result = Route4Me::makeRequst([ |
|
267 | - 'url' => Endpoint::TELEMATICS_CONNECTION, |
|
268 | - 'method' => 'PUT', |
|
269 | - 'body' => Route4Me::generateRequestParameters($allBodyFields, $teleConParams), |
|
270 | - 'query' => ['api_token' => $apiToken, 'connection_token' => $connectionToken], |
|
271 | - 'HTTPHEADER' => 'Content-Type: multipart/form-data', |
|
272 | - ]); |
|
266 | + $result = Route4Me::makeRequst([ |
|
267 | + 'url' => Endpoint::TELEMATICS_CONNECTION, |
|
268 | + 'method' => 'PUT', |
|
269 | + 'body' => Route4Me::generateRequestParameters($allBodyFields, $teleConParams), |
|
270 | + 'query' => ['api_token' => $apiToken, 'connection_token' => $connectionToken], |
|
271 | + 'HTTPHEADER' => 'Content-Type: multipart/form-data', |
|
272 | + ]); |
|
273 | 273 | |
274 | - return $result; |
|
275 | - } |
|
274 | + return $result; |
|
275 | + } |
|
276 | 276 | } |
@@ -11,59 +11,59 @@ |
||
11 | 11 | */ |
12 | 12 | class TelematicsVendors extends Common |
13 | 13 | { |
14 | - /** |
|
15 | - * Unique ID of a telematics vendor. |
|
16 | - * @var type string |
|
17 | - */ |
|
18 | - public $id; |
|
14 | + /** |
|
15 | + * Unique ID of a telematics vendor. |
|
16 | + * @var type string |
|
17 | + */ |
|
18 | + public $id; |
|
19 | 19 | |
20 | - /** |
|
21 | - * Vendor name |
|
22 | - * @var type string |
|
23 | - */ |
|
24 | - public $name; |
|
20 | + /** |
|
21 | + * Vendor name |
|
22 | + * @var type string |
|
23 | + */ |
|
24 | + public $name; |
|
25 | 25 | |
26 | - /** |
|
27 | - * Vendor slug |
|
28 | - * @var type string |
|
29 | - */ |
|
30 | - public $slug; |
|
26 | + /** |
|
27 | + * Vendor slug |
|
28 | + * @var type string |
|
29 | + */ |
|
30 | + public $slug; |
|
31 | 31 | |
32 | - /** |
|
33 | - * Vendor description |
|
34 | - * @var type string |
|
35 | - */ |
|
36 | - public $description; |
|
32 | + /** |
|
33 | + * Vendor description |
|
34 | + * @var type string |
|
35 | + */ |
|
36 | + public $description; |
|
37 | 37 | |
38 | - /** |
|
39 | - * URL to the telematics vendor's logo. |
|
40 | - * @var type string |
|
41 | - */ |
|
42 | - public $logo_url; |
|
38 | + /** |
|
39 | + * URL to the telematics vendor's logo. |
|
40 | + * @var type string |
|
41 | + */ |
|
42 | + public $logo_url; |
|
43 | 43 | |
44 | - /** |
|
45 | - * Website URL of a telematics vendor. |
|
46 | - * @var type string |
|
47 | - */ |
|
48 | - public $website_url; |
|
44 | + /** |
|
45 | + * Website URL of a telematics vendor. |
|
46 | + * @var type string |
|
47 | + */ |
|
48 | + public $website_url; |
|
49 | 49 | |
50 | - /** |
|
51 | - * API URL of a telematics vendor. |
|
52 | - * @var type string |
|
53 | - */ |
|
54 | - public $api_docs_url; |
|
50 | + /** |
|
51 | + * API URL of a telematics vendor. |
|
52 | + * @var type string |
|
53 | + */ |
|
54 | + public $api_docs_url; |
|
55 | 55 | |
56 | - /** |
|
57 | - * If 1, the vendor is integrated in Route4Me |
|
58 | - * @var type string |
|
59 | - */ |
|
60 | - public $is_integrated; |
|
56 | + /** |
|
57 | + * If 1, the vendor is integrated in Route4Me |
|
58 | + * @var type string |
|
59 | + */ |
|
60 | + public $is_integrated; |
|
61 | 61 | |
62 | - /** |
|
63 | - * Vendors size. |
|
64 | - * <para>Accepted values:</para> |
|
65 | - * <para>global, regional, local. </para> |
|
66 | - * @var type string |
|
67 | - */ |
|
68 | - public $size; |
|
62 | + /** |
|
63 | + * Vendors size. |
|
64 | + * <para>Accepted values:</para> |
|
65 | + * <para>global, regional, local. </para> |
|
66 | + * @var type string |
|
67 | + */ |
|
68 | + public $size; |
|
69 | 69 | } |
@@ -9,75 +9,75 @@ |
||
9 | 9 | */ |
10 | 10 | class TelematicsConnectionParameters extends Common |
11 | 11 | { |
12 | - /** |
|
13 | - * Account ID |
|
14 | - * @var type string |
|
15 | - */ |
|
16 | - public $account_id; |
|
12 | + /** |
|
13 | + * Account ID |
|
14 | + * @var type string |
|
15 | + */ |
|
16 | + public $account_id; |
|
17 | 17 | |
18 | - /** |
|
19 | - * User name |
|
20 | - * @var type string |
|
21 | - */ |
|
22 | - public $username; |
|
18 | + /** |
|
19 | + * User name |
|
20 | + * @var type string |
|
21 | + */ |
|
22 | + public $username; |
|
23 | 23 | |
24 | - /** |
|
25 | - * Password |
|
26 | - * @var type string |
|
27 | - */ |
|
28 | - public $password; |
|
24 | + /** |
|
25 | + * Password |
|
26 | + * @var type string |
|
27 | + */ |
|
28 | + public $password; |
|
29 | 29 | |
30 | - /** |
|
31 | - * Connection host |
|
32 | - * @var type string |
|
33 | - */ |
|
34 | - public $host; |
|
30 | + /** |
|
31 | + * Connection host |
|
32 | + * @var type string |
|
33 | + */ |
|
34 | + public $host; |
|
35 | 35 | |
36 | - /** |
|
37 | - * An unique ID of a telematics vendor. |
|
38 | - * @var type integer |
|
39 | - */ |
|
40 | - public $vendor_id; |
|
36 | + /** |
|
37 | + * An unique ID of a telematics vendor. |
|
38 | + * @var type integer |
|
39 | + */ |
|
40 | + public $vendor_id; |
|
41 | 41 | |
42 | - /** |
|
43 | - * Telematics connection name |
|
44 | - * @var type string |
|
45 | - */ |
|
46 | - public $name; |
|
42 | + /** |
|
43 | + * Telematics connection name |
|
44 | + * @var type string |
|
45 | + */ |
|
46 | + public $name; |
|
47 | 47 | |
48 | - /** |
|
49 | - * Vehicle tracking interval in seconds |
|
50 | - * @var type integer |
|
51 | - */ |
|
52 | - public $vehicle_position_refresh_rate; |
|
48 | + /** |
|
49 | + * Vehicle tracking interval in seconds |
|
50 | + * @var type integer |
|
51 | + */ |
|
52 | + public $vehicle_position_refresh_rate; |
|
53 | 53 | |
54 | - /** |
|
55 | - * Connection token |
|
56 | - * @var type string |
|
57 | - */ |
|
58 | - public $connection_token; |
|
54 | + /** |
|
55 | + * Connection token |
|
56 | + * @var type string |
|
57 | + */ |
|
58 | + public $connection_token; |
|
59 | 59 | |
60 | - /** |
|
61 | - * Connection user ID |
|
62 | - * @var type integer |
|
63 | - */ |
|
64 | - public $user_id; |
|
60 | + /** |
|
61 | + * Connection user ID |
|
62 | + * @var type integer |
|
63 | + */ |
|
64 | + public $user_id; |
|
65 | 65 | |
66 | - /** |
|
67 | - * Connection ID |
|
68 | - * @var type integer |
|
69 | - */ |
|
70 | - public $id; |
|
66 | + /** |
|
67 | + * Connection ID |
|
68 | + * @var type integer |
|
69 | + */ |
|
70 | + public $id; |
|
71 | 71 | |
72 | - /** |
|
73 | - * Telemetics connection type |
|
74 | - * @var type string |
|
75 | - */ |
|
76 | - public $vendor; |
|
72 | + /** |
|
73 | + * Telemetics connection type |
|
74 | + * @var type string |
|
75 | + */ |
|
76 | + public $vendor; |
|
77 | 77 | |
78 | - /** |
|
79 | - * Validate connections credentials. |
|
80 | - * @var type Boolean |
|
81 | - */ |
|
82 | - public $validate_remote_credentials; |
|
78 | + /** |
|
79 | + * Validate connections credentials. |
|
80 | + * @var type Boolean |
|
81 | + */ |
|
82 | + public $validate_remote_credentials; |
|
83 | 83 | } |