ListTemplate

data class ListTemplate @JvmOverloads constructor(headerTitle: String, headerLink: Link, contents: List<Content>, buttons: List<Button>?, buttonTitle: String?) : DefaultTemplate, Parcelable

여러 개의 컨텐츠를 리스트 형태로 보여줄 수 있는 메시지 템플릿 클래스.

Constructors

Link copied to clipboard
fun ListTemplate(headerTitle: String, headerLink: Link, contents: List<Content>, buttons: List<Button>? = null, buttonTitle: String? = null)

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val buttons: List<Button>? = null

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

Link copied to clipboard
val buttonTitle: String? = null

기본 버튼 타이틀(자세히 보기)을 변경하고 싶을 때 설정. 이 값을 사용하면 클릭 시 이동할 링크는 content 에 입력된 값이 사용됨.

Link copied to clipboard
val contents: List<Content>

리스트에 노출되는 컨텐츠 목록 (최소 2개, 최대 3개)

Link copied to clipboard
val headerLink: Link

헤더 타이틀 내용에 해당하는 링크 정보

Link copied to clipboard
val headerTitle: String

리스트 상단에 노출되는 헤더 타이틀 (최대 200자)

Link copied to clipboard
val objectType: String

"list" 고정 값