Package com.github.copilot.sdk.events
Class UserMessageEvent.UserMessageData.Attachment
java.lang.Object
com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment
- Enclosing class:
- UserMessageEvent.UserMessageData
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the file path (used for selection attachments).getPath()Gets the selection range (used for selection attachments).getText()Gets the text content (used for selection attachments).getType()voidsetDisplayName(String displayName) voidsetFilePath(String filePath) Sets the file path (used for selection attachments).voidvoidSets the selection range (used for selection attachments).voidSets the text content (used for selection attachments).void
-
Constructor Details
-
Attachment
public Attachment()
-
-
Method Details
-
getType
-
setType
-
getPath
-
setPath
-
getFilePath
Gets the file path (used for selection attachments).- Returns:
- the file path
-
setFilePath
Sets the file path (used for selection attachments).- Parameters:
filePath- the file path
-
getDisplayName
-
setDisplayName
-
getText
Gets the text content (used for selection attachments).- Returns:
- the selected text
-
setText
Sets the text content (used for selection attachments).- Parameters:
text- the selected text
-
getSelection
Gets the selection range (used for selection attachments).- Returns:
- the selection range
-
setSelection
Sets the selection range (used for selection attachments).- Parameters:
selection- the selection range
-