/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

const models = require('./index');

/**
 * An object describing identified category.
 *
 */
class Category {
  /**
   * Create a Category.
   * @member {string} [name] Name of the category.
   * @member {number} [score] Scoring of the category.
   * @member {object} [detail] Additional category detail if available.
   * @member {array} [detail.celebrities] An array of celebrities if any
   * identified.
   */
  constructor() {
  }

  /**
   * Defines the metadata of Category
   *
   * @returns {object} metadata of Category
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'Category',
      type: {
        name: 'Composite',
        className: 'Category',
        modelProperties: {
          name: {
            required: false,
            serializedName: 'name',
            type: {
              name: 'String'
            }
          },
          score: {
            required: false,
            serializedName: 'score',
            type: {
              name: 'Number'
            }
          },
          detail: {
            required: false,
            serializedName: 'detail',
            type: {
              name: 'Composite',
              className: 'CategoryDetail'
            }
          }
        }
      }
    };
  }
}

module.exports = Category;
