Module com.github.copilot.java
Package com.github.copilot.generated.rpc
Record Class McpAppsSetHostContextDetails
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.McpAppsSetHostContextDetails
@Generated("copilot-sdk-codegen")
public record McpAppsSetHostContextDetails(McpAppsSetHostContextDetailsTheme theme, String locale, String timeZone, McpAppsSetHostContextDetailsDisplayMode displayMode, List<McpAppsSetHostContextDetailsAvailableDisplayMode> availableDisplayModes, McpAppsSetHostContextDetailsPlatform platform, String userAgent)
extends Record
Host context advertised to MCP App guests
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionMcpAppsSetHostContextDetails(McpAppsSetHostContextDetailsTheme theme, String locale, String timeZone, McpAppsSetHostContextDetailsDisplayMode displayMode, List<McpAppsSetHostContextDetailsAvailableDisplayMode> availableDisplayModes, McpAppsSetHostContextDetailsPlatform platform, String userAgent) Creates an instance of aMcpAppsSetHostContextDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavailableDisplayModesrecord component.Returns the value of thedisplayModerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.locale()Returns the value of thelocalerecord component.platform()Returns the value of theplatformrecord component.theme()Returns the value of thethemerecord component.timeZone()Returns the value of thetimeZonerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserAgentrecord component.
-
Constructor Details
-
McpAppsSetHostContextDetails
public McpAppsSetHostContextDetails(McpAppsSetHostContextDetailsTheme theme, String locale, String timeZone, McpAppsSetHostContextDetailsDisplayMode displayMode, List<McpAppsSetHostContextDetailsAvailableDisplayMode> availableDisplayModes, McpAppsSetHostContextDetailsPlatform platform, String userAgent) Creates an instance of aMcpAppsSetHostContextDetailsrecord class.- Parameters:
theme- the value for thethemerecord componentlocale- the value for thelocalerecord componenttimeZone- the value for thetimeZonerecord componentdisplayMode- the value for thedisplayModerecord componentavailableDisplayModes- the value for theavailableDisplayModesrecord componentplatform- the value for theplatformrecord componentuserAgent- the value for theuserAgentrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
theme
Returns the value of thethemerecord component.- Returns:
- the value of the
themerecord component
-
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-
timeZone
Returns the value of thetimeZonerecord component.- Returns:
- the value of the
timeZonerecord component
-
displayMode
Returns the value of thedisplayModerecord component.- Returns:
- the value of the
displayModerecord component
-
availableDisplayModes
Returns the value of theavailableDisplayModesrecord component.- Returns:
- the value of the
availableDisplayModesrecord component
-
platform
Returns the value of theplatformrecord component.- Returns:
- the value of the
platformrecord component
-
userAgent
Returns the value of theuserAgentrecord component.- Returns:
- the value of the
userAgentrecord component
-