ask-sdk-core
Version:
Core package for Alexa Skills Kit SDK
47 lines • 1.62 kB
JavaScript
/*
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.TextContentHelper = void 0;
/**
* An abstract class responsible for building text content object using ask-sdk-model in Alexa skills kit display interface
* https://developer.amazon.com/docs/custom-skills/display-interface-reference.html#textcontent-object-specifications.
*/
class TextContentHelper {
/**
* @param {string} primaryText
* @returns {this}
*/
withPrimaryText(primaryText) {
this.primaryText = primaryText;
return this;
}
/**
* @param {string} secondaryText
* @returns {this}
*/
withSecondaryText(secondaryText) {
this.secondaryText = secondaryText;
return this;
}
/**
* @param {string} tertiaryText
* @returns {this}
*/
withTertiaryText(tertiaryText) {
this.tertiaryText = tertiaryText;
return this;
}
}
exports.TextContentHelper = TextContentHelper;
//# sourceMappingURL=TextContentHelper.js.map
;