001/*
002 *   Copyright 2024 Vonage
003 *
004 *   Licensed under the Apache License, Version 2.0 (the "License");
005 *   you may not use this file except in compliance with the License.
006 *   You may obtain a copy of the License at
007 *
008 *        http://www.apache.org/licenses/LICENSE-2.0
009 *
010 *   Unless required by applicable law or agreed to in writing, software
011 *   distributed under the License is distributed on an "AS IS" BASIS,
012 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 *   See the License for the specific language governing permissions and
014 *   limitations under the License.
015 */
016package com.vonage.client.incoming;
017
018import com.fasterxml.jackson.annotation.JsonProperty;
019import com.vonage.client.Jsonable;
020import java.util.Date;
021
022/**
023 * @deprecated Use {@link com.vonage.client.voice.EventWebhook}.
024 */
025@Deprecated
026public class RecordEvent implements Jsonable {
027    private Date startTime, endTime, timestamp;
028    private String url, uuid, conversationUuid;
029    private int size;
030
031    @JsonProperty("start_time")
032    public Date getStartTime() {
033        return startTime;
034    }
035
036    @JsonProperty("recording_url")
037    public String getUrl() {
038        return url;
039    }
040
041    @JsonProperty("size")
042    public int getSize() {
043        return size;
044    }
045
046    @JsonProperty("recording_uuid")
047    public String getUuid() {
048        return uuid;
049    }
050
051    @JsonProperty("end_time")
052    public Date getEndTime() {
053        return endTime;
054    }
055
056    @JsonProperty("conversation_uuid")
057    public String getConversationUuid() {
058        return conversationUuid;
059    }
060
061    @JsonProperty("timestamp")
062    public Date getTimestamp() {
063        return timestamp;
064    }
065
066    public static RecordEvent fromJson(String json) {
067        return Jsonable.fromJson(json);
068    }
069}