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

com.logmein.gotowebinar_2_0.api.model.Poll 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.model.PollResponse;
import java.util.ArrayList;
import java.util.List;

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

/**
 * A poll or survey launched by an organizer during or after a webinar session; includes the responses given to it by the attendees.
 */
public class Poll {

    /* The responses given by the attendees to the poll or survey */
    private List responses = new ArrayList();

    /* The poll or survey question asked by the webinar organizer */
    private String question = null;

    /* The total number of responses received for this poll or survey */
    private Integer numberOfResponses = null;

    /**
     * @return The responses given by the attendees to the poll or survey
     */
    public List getResponses() {
        return responses;
    }

    /**
     * @param responses The responses given by the attendees to the poll or survey
     */
    public void setResponses(List responses) {
        this.responses = responses;
    }

    /**
     * @return The poll or survey question asked by the webinar organizer
     */
    public String getQuestion() {
        return question;
    }

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

    /**
     * @return The total number of responses received for this poll or survey
     */
    public Integer getNumberOfResponses() {
        return numberOfResponses;
    }

    /**
     * @param numberOfResponses The total number of responses received for this poll or survey
     */
    public void setNumberOfResponses(Integer numberOfResponses) {
        this.numberOfResponses = numberOfResponses;
    }

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy