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.verify;
017
018import com.fasterxml.jackson.annotation.JsonProperty;
019
020import java.util.Date;
021
022public class VerifyCheck {
023    private final Date date;
024    private final String code;
025    private final Status status;
026    private final String ipAddress;
027
028    public VerifyCheck(@JsonProperty("date_received") Date date,
029                       @JsonProperty("code") String code,
030                       @JsonProperty("status") Status status,
031                       @JsonProperty("ip_address") String ipAddress) {
032        this.date = date;
033        this.code = code;
034        this.status = status;
035        this.ipAddress = ipAddress;
036    }
037
038    public enum Status {
039        VALID, INVALID,
040    }
041
042    public Date getDate() {
043        return this.date;
044    }
045
046    public String getCode() {
047        return this.code;
048    }
049
050    public Status getStatus() {
051        return this.status;
052    }
053
054    public String getIpAddress() {
055        return this.ipAddress;
056    }
057}