appcenter-cli
Version:
Command line tool for Visual Studio App Center
74 lines (69 loc) • 2.05 kB
JavaScript
/*
* 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.
*/
;
/**
* Notification definition object
*
*/
class NotificationDefinition {
/**
* Create a NotificationDefinition.
* @property {object} [notificationTarget]
* @property {string} [notificationTarget.type] Polymorphic Discriminator
* @property {object} notificationContent
* @property {string} [notificationContent.name] Notification name
* @property {string} [notificationContent.title] Notification title
* @property {string} [notificationContent.body] Notification body
* @property {object} [notificationContent.customData] Notification custom
* data (such as badge, color, sound, etc.)
*/
constructor() {
}
/**
* Defines the metadata of NotificationDefinition
*
* @returns {object} metadata of NotificationDefinition
*
*/
mapper() {
return {
required: false,
serializedName: 'NotificationDefinition',
type: {
name: 'Composite',
className: 'NotificationDefinition',
modelProperties: {
notificationTarget: {
required: false,
serializedName: 'notification_target',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'NotificationTarget',
className: 'NotificationTarget'
}
},
notificationContent: {
required: true,
serializedName: 'notification_content',
type: {
name: 'Composite',
className: 'NotificationContent'
}
}
}
}
};
}
}
module.exports = NotificationDefinition;