2 * Copyright (c) 2010-2023 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 java.time.ZonedDateTime;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import com.google.gson.annotations.SerializedName;
22 * The {@link PostResponse} is responsible for storing
23 * elements given back after a post to VOC api
25 * @author Gaƫl L'hopital - Initial contribution
28 public class PostResponse extends VocAnswer {
31 @SerializedName("Started")
33 @SerializedName("MessageDelivered")
35 @SerializedName("Failed")
37 @SerializedName("Successful")
41 public enum ServiceType {
42 RHBLF, // Remote Honk and Blink Lights ?
43 RDU, // Remote door unlock
44 ERS, // Remote engine start
45 TN // Theft notification
48 public @NonNullByDefault({}) Status status;
49 public @NonNullByDefault({}) String vehicleId;
50 @SerializedName("service")
51 public @NonNullByDefault({}) String serviceURL;
52 public @NonNullByDefault({}) ServiceType serviceType;
53 public @NonNullByDefault({}) ZonedDateTime startTime;
55 * Currently unused in the binding, maybe interesting in the future
57 * public static enum FailureReason {
59 * @SerializedName("TimeframePassed")
63 * private ZonedDateTime statusTimestamp;
65 * private FailureReason failureReason;
67 * private Integer customerServiceId;