com.logmein.gotowebinar.api.model.RegistrationField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gotowebinar-api Show documentation
Show all versions of gotowebinar-api Show documentation
Java SDK for the GoToWebinar REST API
/*
* © 2017 LogMeIn, Inc. All Rights Reserved.
* All rights reserved.
*
* This software is distributed under the terms and conditions of the
* LogMeIn SDK License Agreement. Please see file LICENSE for details.
*
* Auto-generated file.
*/
package com.logmein.gotowebinar.api.model;
import java.util.ArrayList;
import java.util.List;
import com.logmein.gotowebinar.api.common.JsonUtil;
/**
* Describes a field for a webinar registration.
*/
public class RegistrationField {
/* The name of the registration field */
private String field = null;
/* List of choices for a multiple choice registration field */
private List answers = new ArrayList();
/* Indicates whether the custom registration field is compulsory */
private Boolean required = null;
/* The character size of the custom registration field (max 128) */
private Integer maxSize = null;
/**
* @return The name of the registration field
*/
public String getField() {
return field;
}
/**
* @param field The name of the registration field
*/
public void setField(String field) {
this.field = field;
}
/**
* @return List of choices for a multiple choice registration field
*/
public List getAnswers() {
return answers;
}
/**
* @param answers List of choices for a multiple choice registration field
*/
public void setAnswers(List answers) {
this.answers = answers;
}
/**
* @return Indicates whether the custom registration field is compulsory
*/
public Boolean getRequired() {
return required;
}
/**
* @param required Indicates whether the custom registration field is compulsory
*/
public void setRequired(Boolean required) {
this.required = required;
}
/**
* @return The character size of the custom registration field (max 128)
*/
public Integer getMaxSize() {
return maxSize;
}
/**
* @param maxSize The character size of the custom registration field (max 128)
*/
public void setMaxSize(Integer maxSize) {
this.maxSize = maxSize;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RegistrationField {\n");
String fieldString = JsonUtil.Stringify(field);
if (fieldString != null && !fieldString.isEmpty())
sb.append(String.format(" field: %s\n", fieldString));
String answersString = JsonUtil.Stringify(answers);
if (answersString != null && !answersString.isEmpty())
sb.append(String.format(" answers: %s\n", answersString));
String requiredString = JsonUtil.Stringify(required);
if (requiredString != null && !requiredString.isEmpty())
sb.append(String.format(" required: %s\n", requiredString));
String maxSizeString = JsonUtil.Stringify(maxSize);
if (maxSizeString != null && !maxSizeString.isEmpty())
sb.append(String.format(" maxSize: %s\n", maxSizeString));
sb.append("}\n");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy