UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

114 lines (109 loc) 3.09 kB
/* * 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'; /** * Notification statistics * */ class NotificationOverviewResult { /** * Create a NotificationOverviewResult. * @property {string} notificationId Notification id. * @property {string} [name] Notification name * @property {object} [notificationTarget] * @property {string} [notificationTarget.type] Polymorphic Discriminator * @property {date} [sendTime] Notification send time * @property {number} [pnsSendFailure] Number of the notifications failed to * send to the push provider. * @property {number} [pnsSendSuccess] Number of the notifications * successfully sent to push the provider. * @property {string} state State of the notification. Possible values * include: 'Queued', 'Sending', 'Completed', 'Failed', 'NoTargetFound' */ constructor() { } /** * Defines the metadata of NotificationOverviewResult * * @returns {object} metadata of NotificationOverviewResult * */ mapper() { return { required: false, serializedName: 'NotificationOverviewResult', type: { name: 'Composite', className: 'NotificationOverviewResult', modelProperties: { notificationId: { required: true, serializedName: 'notification_id', type: { name: 'String' } }, name: { required: false, serializedName: 'name', constraints: { MaxLength: 64 }, type: { name: 'String' } }, notificationTarget: { required: false, serializedName: 'notification_target', type: { name: 'Composite', polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' }, uberParent: 'NotificationTarget', className: 'NotificationTarget' } }, sendTime: { required: false, serializedName: 'send_time', type: { name: 'DateTime' } }, pnsSendFailure: { required: false, serializedName: 'pns_send_failure', type: { name: 'Number' } }, pnsSendSuccess: { required: false, serializedName: 'pns_send_success', type: { name: 'Number' } }, state: { required: true, serializedName: 'state', type: { name: 'String' } } } } }; } } module.exports = NotificationOverviewResult;