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.sms; 017 018import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 019import com.fasterxml.jackson.annotation.JsonProperty; 020 021import java.util.Date; 022 023@JsonIgnoreProperties(ignoreUnknown = true) 024public class SmsDetails { 025 private String messageId; 026 private String accountId; 027 private String network; 028 private String from; 029 private String to; 030 private String body; 031 private String price; 032 private Date dateReceived; 033 private String finalStatus; 034 private Date dateClosed; 035 private Integer latency; 036 private String type; 037 038 @JsonProperty("message-id") 039 public String getMessageId() { 040 return messageId; 041 } 042 043 @JsonProperty("account-id") 044 public String getAccountId() { 045 return accountId; 046 } 047 048 public String getNetwork() { 049 return network; 050 } 051 052 public String getFrom() { 053 return from; 054 } 055 056 public String getTo() { 057 return to; 058 } 059 060 public String getBody() { 061 return body; 062 } 063 064 public String getPrice() { 065 return price; 066 } 067 068 @JsonProperty("date-received") 069 public Date getDateReceived() { 070 return dateReceived; 071 } 072 073 @JsonProperty("final-status") 074 public String getFinalStatus() { 075 return finalStatus; 076 } 077 078 @JsonProperty("date-closed") 079 public Date getDateClosed() { 080 return dateClosed; 081 } 082 083 public Integer getLatency() { 084 return latency; 085 } 086 087 public String getType() { 088 return type; 089 } 090}