All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.logmein.gotowebinar_2_0.api.model.PollAnswer Maven / Gradle / Ivy

There is a newer version: 2.9.0
Show newest version
/*
 * © 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_2_0.api.model;


import com.logmein.gotowebinar_2_0.api.common.JsonUtil;

/**
 * Describes the answer given by a webinar attendee to a poll or survey launched by an organizer.
 */
public class PollAnswer {

    /* The answer given to the poll or survey question */
    private String answer = null;

    /* The poll or survey question */
    private String question = null;

    /**
     * @return The answer given to the poll or survey question
     */
    public String getAnswer() {
        return answer;
    }

    /**
     * @param answer The answer given to the poll or survey question
     */
    public void setAnswer(String answer) {
        this.answer = answer;
    }

    /**
     * @return The poll or survey question
     */
    public String getQuestion() {
        return question;
    }

    /**
     * @param question The poll or survey question
     */
    public void setQuestion(String question) {
        this.question = question;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class PollAnswer {\n");
        String answerString = JsonUtil.Stringify(answer);
        if (answerString != null && !answerString.isEmpty())
            sb.append(String.format("  answer: %s\n", answerString));
        String questionString = JsonUtil.Stringify(question);
        if (questionString != null && !questionString.isEmpty())
            sb.append(String.format("  question: %s\n", questionString));
        sb.append("}\n");
        return sb.toString();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy