Skip to content

Commit 7b93ec1

Browse files
committed
Include MenuParams updates
1 parent d98c3c1 commit 7b93ec1

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

lib/js/src/rpc/structs/MenuParams.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,52 @@ class MenuParams extends RpcStruct {
100100
getMenuName () {
101101
return this.getParameter(MenuParams.KEY_MENU_NAME);
102102
}
103+
104+
/**
105+
* Set the SecondaryText
106+
* @since SmartDeviceLink 7.1.0
107+
* @param {String} text - Optional secondary text to display - The desired SecondaryText.
108+
* {'string_min_length': 1, 'string_max_length': 500}
109+
* @returns {MenuParams} - The class instance for method chaining.
110+
*/
111+
setSecondaryText (text) {
112+
this.setParameter(MenuParams.KEY_SECONDARY_TEXT, text);
113+
return this;
114+
}
115+
116+
/**
117+
* Get the SecondaryText
118+
* @returns {String} - the KEY_SECONDARY_TEXT value
119+
*/
120+
getSecondaryText () {
121+
return this.getParameter(MenuParams.KEY_SECONDARY_TEXT);
122+
}
123+
124+
/**
125+
* Set the TertiaryText
126+
* @since SmartDeviceLink 7.1.0
127+
* @param {String} text - Optional tertiary text to display - The desired TertiaryText.
128+
* {'string_min_length': 1, 'string_max_length': 500}
129+
* @returns {MenuParams} - The class instance for method chaining.
130+
*/
131+
setTertiaryText (text) {
132+
this.setParameter(MenuParams.KEY_TERTIARY_TEXT, text);
133+
return this;
134+
}
135+
136+
/**
137+
* Get the TertiaryText
138+
* @returns {String} - the KEY_TERTIARY_TEXT value
139+
*/
140+
getTertiaryText () {
141+
return this.getParameter(MenuParams.KEY_TERTIARY_TEXT);
142+
}
103143
}
104144

105145
MenuParams.KEY_PARENT_ID = 'parentID';
106146
MenuParams.KEY_POSITION = 'position';
107147
MenuParams.KEY_MENU_NAME = 'menuName';
148+
MenuParams.KEY_SECONDARY_TEXT = 'secondaryText';
149+
MenuParams.KEY_TERTIARY_TEXT = 'tertiaryText';
108150

109151
export { MenuParams };

0 commit comments

Comments
 (0)