com.geotab.model.entity.textmessage.CannedResponseOption Maven / Gradle / Ivy
/*
*
* 2020 Copyright (C) Geotab Inc. All rights reserved.
*/
package com.geotab.model.entity.textmessage;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
/**
* Specifies the allowed responses to a {@link TextMessage}.
*/
@NoArgsConstructor
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode()
public class CannedResponseOption {
/**
* The id number of the reply or null.
*/
private Integer id;
/**
* The text options provided for the CannedResponse message reply.
*/
private String text;
@Builder
public CannedResponseOption(Integer id, String text) {
this.id = id;
this.text = text;
}
public CannedResponseOption(String text) {
this.text = text;
}
}