/*
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

/**
 * Class representing a DistributionGroupReleasesResponseItem.
 */
class DistributionGroupReleasesResponseItem {
  /**
   * Create a DistributionGroupReleasesResponseItem.
   * @member {number} [id] ID identifying this unique release.
   * @member {string} [version] The release's version.<br>
   * For iOS: CFBundleVersion from info.plist.<br>
   * For Android: android:versionCode from AppManifest.xml.
   * @member {string} [shortVersion] The release's short version.<br>
   * For iOS: CFBundleShortVersionString from info.plist.<br>
   * For Android: android:versionName from AppManifest.xml.
   * @member {string} [uploadedAt] UTC time in ISO 8601 format of the uploaded
   * time.
   */
  constructor() {
  }

  /**
   * Defines the metadata of DistributionGroupReleasesResponseItem
   *
   * @returns {object} metadata of DistributionGroupReleasesResponseItem
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'DistributionGroupReleasesResponseItem',
      type: {
        name: 'Composite',
        className: 'DistributionGroupReleasesResponseItem',
        modelProperties: {
          id: {
            required: false,
            serializedName: 'id',
            type: {
              name: 'Number'
            }
          },
          version: {
            required: false,
            serializedName: 'version',
            type: {
              name: 'String'
            }
          },
          shortVersion: {
            required: false,
            serializedName: 'short_version',
            type: {
              name: 'String'
            }
          },
          uploadedAt: {
            required: false,
            serializedName: 'uploaded_at',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = DistributionGroupReleasesResponseItem;
