TextTemplate

public struct TextTemplate : Codable, Templatable

텍스트형 기본 템플릿 클래스

  • “text” 고정 값

    Declaration

    Swift

    public let objectType: String
  • 메시지에 들어갈 텍스트 (최대 200자)

    Declaration

    Swift

    public var text: String
  • 컨텐츠 클릭 시 이동할 링크 정보

    Seealso

    Link

    Declaration

    Swift

    public var link: Link
  • 기본 버튼 타이틀(“자세히 보기”)을 변경하고 싶을 때 설정. 이 값을 사용하면 클릭 시 이동할 링크는 content에 입력된 값이 사용됩니다.

    Declaration

    Swift

    public var buttonTitle: String?
  • 버튼 목록. 버튼 타이틀과 링크를 변경하고 싶을때, 버튼 두개를 사용하고 싶을때 사용. (최대 2개)

    Seealso

    Button

    Declaration

    Swift

    public var buttons: [Button]?
  • Declaration

    Swift

    public func toJsonObject() -> [String : Any]?