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

com.logmein.gotowebinar.api.model.Attendee 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.api.model;

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

import java.util.ArrayList;
import java.util.List;

/**
 * Describes the attendee of a webinar
 */
public class Attendee {

    /* The key of the webinar attendee */
    private Long registrantKey = null;

    /* The attendee's first name */
    private String firstName = null;

    /* The attendee's last name */
    private String lastName = null;

    /* The attendee's email address */
    private String email = null;

    /* The total attendance time in seconds */
    private Long attendanceTimeInSeconds = null;

    /* The unique key of the webinar session */
    private Long sessionKey = null;

    /* The list of times the attendee joined and left the webinar session */
    private List attendance = new ArrayList();

    /**
     * @return The key of the webinar attendee
     */
    public Long getRegistrantKey() {
        return registrantKey;
    }

    /**
     * @param registrantKey The key of the webinar attendee
     */
    public void setRegistrantKey(Long registrantKey) {
        this.registrantKey = registrantKey;
    }

    /**
     * @return The attendee's first name
     */
    public String getFirstName() {
        return firstName;
    }

    /**
     * @param firstName The attendee's first name
     */
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    /**
     * @return The attendee's last name
     */
    public String getLastName() {
        return lastName;
    }

    /**
     * @param lastName The attendee's last name
     */
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    /**
     * @return The attendee's email address
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email The attendee's email address
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return The total attendance time in seconds
     */
    public Long getAttendanceTimeInSeconds() {
        return attendanceTimeInSeconds;
    }

    /**
     * @param attendanceTimeInSeconds The total attendance time in seconds
     */
    public void setAttendanceTimeInSeconds(Long attendanceTimeInSeconds) {
        this.attendanceTimeInSeconds = attendanceTimeInSeconds;
    }

    /**
     * @return The unique key of the webinar session
     */
    public Long getSessionKey() {
        return sessionKey;
    }

    /**
     * @param sessionKey The unique key of the webinar session
     */
    public void setSessionKey(Long sessionKey) {
        this.sessionKey = sessionKey;
    }

    /**
     * @return The list of times the attendee joined and left the webinar session
     */
    public List getAttendance() {
        return attendance;
    }

    /**
     * @param attendance The list of times the attendee joined and left the webinar session
     */
    public void setAttendance(List attendance) {
        this.attendance = attendance;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class Attendee {\n");
        String registrantKeyString = JsonUtil.Stringify(registrantKey);
        if (registrantKeyString != null && !registrantKeyString.isEmpty())
            sb.append(String.format("  registrantKey: %s\n", registrantKeyString));
        String firstNameString = JsonUtil.Stringify(firstName);
        if (firstNameString != null && !firstNameString.isEmpty())
            sb.append(String.format("  firstName: %s\n", firstNameString));
        String lastNameString = JsonUtil.Stringify(lastName);
        if (lastNameString != null && !lastNameString.isEmpty())
            sb.append(String.format("  lastName: %s\n", lastNameString));
        String emailString = JsonUtil.Stringify(email);
        if (emailString != null && !emailString.isEmpty())
            sb.append(String.format("  email: %s\n", emailString));
        String attendanceTimeInSecondsString = JsonUtil.Stringify(attendanceTimeInSeconds);
        if (attendanceTimeInSecondsString != null && !attendanceTimeInSecondsString.isEmpty())
            sb.append(String.format("  attendanceTimeInSeconds: %s\n", attendanceTimeInSecondsString));
        String sessionKeyString = JsonUtil.Stringify(sessionKey);
        if (sessionKeyString != null && !sessionKeyString.isEmpty())
            sb.append(String.format("  sessionKey: %s\n", sessionKeyString));
        String attendanceString = JsonUtil.Stringify(attendance);
        if (attendanceString != null && !attendanceString.isEmpty())
            sb.append(String.format("  attendance: %s\n", attendanceString));
        sb.append("}\n");
        return sb.toString();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy