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

/**
 * Person object.
 *
 */
class PersonResult {
  /**
   * Create a PersonResult.
   * @member {string} personId personId of the target face list.
   * @member {array} [persistedFaceIds] persistedFaceIds of registered faces in
   * the person. These persistedFaceIds are returned from Person - Add a Person
   * Face, and will not expire.
   * @member {string} [name] Person's display name.
   * @member {string} [userData] User-provided data attached to this person.
   */
  constructor() {
  }

  /**
   * Defines the metadata of PersonResult
   *
   * @returns {object} metadata of PersonResult
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'PersonResult',
      type: {
        name: 'Composite',
        className: 'PersonResult',
        modelProperties: {
          personId: {
            required: true,
            serializedName: 'personId',
            type: {
              name: 'String'
            }
          },
          persistedFaceIds: {
            required: false,
            serializedName: 'persistedFaceIds',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'StringElementType',
                  type: {
                    name: 'String'
                  }
              }
            }
          },
          name: {
            required: false,
            serializedName: 'name',
            type: {
              name: 'String'
            }
          },
          userData: {
            required: false,
            serializedName: 'userData',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = PersonResult;
