001/*
002 *   Copyright 2020 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.conversion;
017
018import java.util.Date;
019
020public class ConversionRequest {
021    private Type type;
022    private String messageId;
023    private boolean delivered;
024    private Date timestamp;
025
026    public ConversionRequest(Type type, String messageId, boolean delivered, Date timestamp) {
027        this.type = type;
028        this.messageId = messageId;
029        this.delivered = delivered;
030        this.timestamp = timestamp;
031    }
032
033    public Type getType() {
034        return type;
035    }
036
037    public String getMessageId() {
038        return messageId;
039    }
040
041    public boolean isDelivered() {
042        return delivered;
043    }
044
045    public Date getTimestamp() {
046        return timestamp;
047    }
048
049    public enum Type {
050        SMS, VOICE
051    }
052}