]> git.basschouten.com Git - openhab-addons.git/blob
ba76b3d1b6e70753fb2df031867f741aad7b9fa0
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.ecobee.internal.dto;
14
15 /**
16  * The {@link AbstractResponseDTO} represents the common objects included in
17  * all responses.
18  *
19  * @author Mark Hilbush - Initial contribution
20  */
21 public abstract class AbstractResponseDTO {
22
23     /*
24      * The Page object is optional and will only appear for responses which
25      * can be paged. It will not appear for responses which do not contain pageable content.
26      */
27     public PageDTO page;
28
29     /*
30      * The Status object contains the response code for the request. It will also contain
31      * an appropriate message when an error occurs. The status is always returned from all
32      * GET and POST calls. A non-zero code means that an error occurred. Refer to the Response
33      * Codes section for details of each error which may be returned.
34      */
35     public StatusDTO status;
36 }