TabContext Class

  • java.lang.Object
    • com.microsoft.bot.schema.teams.TabContext

public class TabContext

Current tab request context, i.e., the current theme.

Constructor Summary

Constructor Description
TabContext()

Initializes a new instance of the class.

TabContext(String withTheme)

Initializes a new instance of the class.

Method Summary

Modifier and Type Method and Description
java.lang.String getTheme()

Gets the current user's theme.

void setTheme(String withTheme)

Sets the current user's theme.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

TabContext

public TabContext()

Initializes a new instance of the class.

TabContext

public TabContext(String withTheme)

Initializes a new instance of the class.

Parameters:

withTheme - The current user's theme.

Method Details

getTheme

public String getTheme()

Gets the current user's theme.

Returns:

The current user's theme.

setTheme

public void setTheme(String withTheme)

Sets the current user's theme.

Parameters:

withTheme - The current user's theme.

Applies to