Class UserMessageEvent.UserMessageData.Attachment

java.lang.Object
com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment
Enclosing class:
UserMessageEvent.UserMessageData

public static class UserMessageEvent.UserMessageData.Attachment extends Object
  • Constructor Details

    • Attachment

      public Attachment()
  • Method Details

    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getPath

      public String getPath()
    • setPath

      public void setPath(String path)
    • getFilePath

      public String getFilePath()
      Gets the file path (used for selection attachments).
      Returns:
      the file path
    • setFilePath

      public void setFilePath(String filePath)
      Sets the file path (used for selection attachments).
      Parameters:
      filePath - the file path
    • getDisplayName

      public String getDisplayName()
    • setDisplayName

      public void setDisplayName(String displayName)
    • getText

      public String getText()
      Gets the text content (used for selection attachments).
      Returns:
      the selected text
    • setText

      public void setText(String text)
      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

      public void setSelection(UserMessageEvent.UserMessageData.Attachment.Selection selection)
      Sets the selection range (used for selection attachments).
      Parameters:
      selection - the selection range