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

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

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

/**
 * Describes the question asked by an attendee during a webinar session; includes the answers given to it.
 */
public class AttendeeQuestion {

    /* Answer to a question of an attendee and key of the organizer that answered */
    private List answers = new ArrayList();

    /* The question asked by the attendee */
    private String question = null;

    /* The email address of the attendee that asked the question */
    private String askedBy = null;

    /**
     * @return Answer to a question of an attendee and key of the organizer that answered
     */
    public List getAnswers() {
        return answers;
    }

    /**
     * @param answers Answer to a question of an attendee and key of the organizer that answered
     */
    public void setAnswers(List answers) {
        this.answers = answers;
    }

    /**
     * @return The question asked by the attendee
     */
    public String getQuestion() {
        return question;
    }

    /**
     * @param question The question asked by the attendee
     */
    public void setQuestion(String question) {
        this.question = question;
    }

    /**
     * @return The email address of the attendee that asked the question
     */
    public String getAskedBy() {
        return askedBy;
    }

    /**
     * @param askedBy The email address of the attendee that asked the question
     */
    public void setAskedBy(String askedBy) {
        this.askedBy = askedBy;
    }

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy