Class GoogleAppsCardV1SwitchControl
Either a toggle-style switch or a checkbox inside a decoratedText widget. Google Workspace add-ons and Chat
apps: Only supported in the decoratedText widget.
Implements
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class GoogleAppsCardV1SwitchControl : IDirectResponseSchema
Properties
ControlType
How the switch appears in the user interface. Google Workspace add-ons and Chat apps:
Declaration
[JsonProperty("controlType")]
public virtual string ControlType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
The name by which the switch widget is identified in a form input event (as the key in
CommonEventObject.form_inputs). For details about working with form inputs, see Receive form
data.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OnChangeAction
The action to perform when the switch state is changed, such as what function to run.
Declaration
[JsonProperty("onChangeAction")]
public virtual GoogleAppsCardV1Action OnChangeAction { get; set; }
Property Value
| Type | Description |
|---|---|
| GoogleAppsCardV1Action |
Selected
When true, the switch is selected, and its value is included in
CommonEventObject.form_inputs[name].string_inputs.value.
Declaration
[JsonProperty("selected")]
public virtual bool? Selected { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Value
The value returned in CommonEventObject.form_inputs[name].string_inputs when the switch is selected
(selected is true). If selected is true and value is unset, an empty string ("") is returned in
string_inputs.value. When selected is false, this value is omitted from string_inputs.value. For
details about working with form inputs, see Receive form
data.
Declaration
[JsonProperty("value")]
public virtual string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| string |