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

/**
 * Basic information on a release
 *
 */
class StoresBasicReleaseDetails {
  /**
   * Create a StoresBasicReleaseDetails.
   * @member {number} [id] ID identifying this unique release.
   * @member {string} [version] The release's version.
   * For iOS: CFBundleVersion from info.plist.
   * For Android: android:versionCode from AppManifest.xml.
   * @member {string} [shortVersion] The release's short version.
   * For iOS: CFBundleShortVersionString from info.plist.
   * For Android: android:versionName from AppManifest.xml.
   * @member {string} [uploadedAt] UTC time in ISO 8601 format of the uploaded
   * time.
   * @member {array} [distributionStores] a list of distribution stores that
   * are associated with this release.
   */
  constructor() {
  }

  /**
   * Defines the metadata of StoresBasicReleaseDetails
   *
   * @returns {object} metadata of StoresBasicReleaseDetails
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'StoresBasicReleaseDetails',
      type: {
        name: 'Composite',
        className: 'StoresBasicReleaseDetails',
        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'
            }
          },
          distributionStores: {
            required: false,
            serializedName: 'distribution_stores',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'StoresDetailsElementType',
                  type: {
                    name: 'Composite',
                    className: 'StoresDetails'
                  }
              }
            }
          }
        }
      }
    };
  }
}

module.exports = StoresBasicReleaseDetails;
