2 * Copyright (c) 2010-2020 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.volvooncall.internal.dto;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
17 import com.google.gson.annotations.SerializedName;
20 * The {@link PostResponse} is responsible for storing
21 * elements given back after a post to VOC api
23 * @author Gaƫl L'hopital - Initial contribution
26 public class PostResponse extends VocAnswer {
28 public static enum Status {
29 @SerializedName("Started")
31 @SerializedName("MessageDelivered")
33 @SerializedName("Failed")
35 @SerializedName("Successful")
39 public static enum ServiceType {
40 RHBLF, // Remote Honk and Blink Lights ?
41 RDU, // Remote door unlock
42 ERS, // Remote engine start
43 TN // Theft notification
46 public @NonNullByDefault({}) Status status;
47 public @NonNullByDefault({}) String vehicleId;
48 @SerializedName("service")
49 public @NonNullByDefault({}) String serviceURL;
50 public @NonNullByDefault({}) ServiceType serviceType;
53 * Currently unused in the binding, maybe interesting in the future
55 * public static enum FailureReason {
57 * @SerializedName("TimeframePassed")
61 * private ZonedDateTime statusTimestamp;
62 * private ZonedDateTime startTime;
63 * private FailureReason failureReason;
65 * private Integer customerServiceId;