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

com.logmein.gotomeeting.api.model.OrganizerStatus Maven / Gradle / Ivy

The 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.gotomeeting.api.model;

import com.logmein.gotomeeting.api.model.Product;

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

/**
 * Describes the status of an organizer, i.e. whether they are able to host meetings.
 */
public class OrganizerStatus {

    /* The status of the organizer can be set to. Use 'suspended' to remove all products. The formerly used status 'active' is now DEPRECATED for this call. To activate the organizer please assign a product. In this case do not pass this parameter */
    private StatusEnum status = null;

    /* The product you want to add to the organizer. The call must be sent once for each product you want to add */
    private Product productType = null;

    /**
     * The status of the organizer can be set to. Use 'suspended' to remove all products. The formerly used status 'active' is now DEPRECATED for this call. To activate the organizer please assign a product. In this case do not pass this parameter
     */
    public enum StatusEnum { suspended }

    /**
     * @return The status of the organizer can be set to. Use 'suspended' to remove all products. The formerly used status 'active' is now DEPRECATED for this call. To activate the organizer please assign a product. In this case do not pass this parameter
     */
    public StatusEnum getStatus() {
        return status;
    }

    /**
     * @param status The status of the organizer can be set to. Use 'suspended' to remove all products. The formerly used status 'active' is now DEPRECATED for this call. To activate the organizer please assign a product. In this case do not pass this parameter
     */
    public void setStatus(StatusEnum status) {
        this.status = status;
    }

    /**
     * @return The product you want to add to the organizer. The call must be sent once for each product you want to add
     */
    public Product getProductType() {
        return productType;
    }

    /**
     * @param productType The product you want to add to the organizer. The call must be sent once for each product you want to add
     */
    public void setProductType(Product productType) {
        this.productType = productType;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class OrganizerStatus {\n");
        String statusString = JsonUtil.Stringify(status);
        if (statusString != null && !statusString.isEmpty())
            sb.append(String.format("  status: %s\n", statusString));
        String productTypeString = JsonUtil.Stringify(productType);
        if (productTypeString != null && !productTypeString.isEmpty())
            sb.append(String.format("  productType: %s\n", productTypeString));
        sb.append("}\n");
        return sb.toString();
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy