Skip to content

Commit 1e0e6be

Browse files
authored
Merge pull request #363 from smartdevicelink/feature/0305-homogenize-textfieldname
[SDL 0305] Homogenize TextFieldName
2 parents 76f054e + 7eb8aea commit 1e0e6be

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

lib/js/src/rpc/enums/TextFieldName.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable camelcase */
22
/*
3-
* Copyright (c) 2020, SmartDeviceLink Consortium, Inc.
3+
* Copyright (c) 2021, SmartDeviceLink Consortium, Inc.
44
* All rights reserved.
55
*
66
* Redistribution and use in source and binary forms, with or without
@@ -327,6 +327,26 @@ class TextFieldName extends Enum {
327327
return TextFieldName._MAP.phoneNumber;
328328
}
329329

330+
/**
331+
* Get the enum value for timeToDestination.
332+
* @since SmartDeviceLink 7.1.0
333+
* Optional time to destination field for navigationTexts parameter in ShowConstantTBT
334+
* @returns {String} - The enum value.
335+
*/
336+
static get timeToDestination () {
337+
return TextFieldName._MAP.timeToDestination;
338+
}
339+
340+
/**
341+
* Get the enum value for turnText.
342+
* @since SmartDeviceLink 7.1.0
343+
* Turn text for turnList parameter of UpdateTurnList
344+
* @returns {String} - The enum value.
345+
*/
346+
static get turnText () {
347+
return TextFieldName._MAP.turnText;
348+
}
349+
330350
/**
331351
* Get the enum value for subtleAlertText1.
332352
* @since SmartDeviceLink 7.0.0
@@ -414,6 +434,8 @@ TextFieldName._MAP = Object.freeze({
414434
'locationDescription': 'locationDescription',
415435
'addressLines': 'addressLines',
416436
'phoneNumber': 'phoneNumber',
437+
'timeToDestination': 'timeToDestination',
438+
'turnText': 'turnText',
417439
'subtleAlertText1': 'subtleAlertText1',
418440
'subtleAlertText2': 'subtleAlertText2',
419441
'subtleAlertSoftButtonText': 'subtleAlertSoftButtonText',

0 commit comments

Comments
 (0)