接口 Content

所有已知实现类:
ImageContent, TextContent

public interface Content
Abstract base interface for message content.
  • 方法概要

    修饰符和类型
    方法
    说明
    Returns the type of content.
  • 方法详细资料

    • type

      ContentType type()
      Returns the type of content.

      Can be used to cast the content to the correct type.

      返回:
      The type of content.