com.logmein.gotowebinar.api.model.PollResponse 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 com.logmein.gotowebinar.api.common.JsonUtil;
/**
* One of the potential responses/options to a poll or survey launched by an organizer during a webinar session.
*/
public class PollResponse {
/* The text of the response/option to a poll or survey */
private String text = null;
/* The percentage of responses that favored this particular option */
private Float percentage = null;
/**
* @return The text of the response/option to a poll or survey
*/
public String getText() {
return text;
}
/**
* @param text The text of the response/option to a poll or survey
*/
public void setText(String text) {
this.text = text;
}
/**
* @return The percentage of responses that favored this particular option
*/
public Float getPercentage() {
return percentage;
}
/**
* @param percentage The percentage of responses that favored this particular option
*/
public void setPercentage(Float percentage) {
this.percentage = percentage;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PollResponse {\n");
String textString = JsonUtil.Stringify(text);
if (textString != null && !textString.isEmpty())
sb.append(String.format(" text: %s\n", textString));
String percentageString = JsonUtil.Stringify(percentage);
if (percentageString != null && !percentageString.isEmpty())
sb.append(String.format(" percentage: %s\n", percentageString));
sb.append("}\n");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy