/*
 * 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';

/**
 * Result of domain-specific classifications for the domain of landmarks.
 *
 */
class LandmarkResults {
  /**
   * Create a LandmarkResults.
   * @property {array} [landmarks] List of landmarks recognized in the image.
   * @property {string} [requestId] Id of the REST API request.
   * @property {object} [metadata]
   * @property {number} [metadata.width] Image width, in pixels.
   * @property {number} [metadata.height] Image height, in pixels.
   * @property {string} [metadata.format] Image format.
   */
  constructor() {
  }

  /**
   * Defines the metadata of LandmarkResults
   *
   * @returns {object} metadata of LandmarkResults
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'LandmarkResults',
      type: {
        name: 'Composite',
        className: 'LandmarkResults',
        modelProperties: {
          landmarks: {
            required: false,
            nullable: true,
            serializedName: 'landmarks',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'LandmarksModelElementType',
                  type: {
                    name: 'Composite',
                    className: 'LandmarksModel'
                  }
              }
            }
          },
          requestId: {
            required: false,
            nullable: true,
            serializedName: 'requestId',
            type: {
              name: 'String'
            }
          },
          metadata: {
            required: false,
            serializedName: 'metadata',
            type: {
              name: 'Composite',
              className: 'ImageMetadata'
            }
          }
        }
      }
    };
  }
}

module.exports = LandmarkResults;
