Package com.kakao.sdk.template.model

메시지 템플릿에 사용되는 속성 정보를 정의하는 패키지.

Types

Link copied to clipboard
data class Button(title: String, link: Link) : Parcelable

메시지 하단에 추가되는 버튼 오브젝트.

Link copied to clipboard
data class CalendarTemplate @JvmOverloads constructor(id: String, idType: IdType, content: Content, buttons: List<Button>?) : DefaultTemplate, Parcelable

톡캘린더의 구독 캘린더 또는 공개 일정 정보를 포함한 메시지 형식입니다. 카카오톡 채널의 구독 캘린더 또는 공개 일정을 사용자의 톡캘린더에 추가하는 기능을 제공합니다.

Link copied to clipboard
data class Commerce @JvmOverloads constructor(regularPrice: Int, discountPrice: Int?, fixedDiscountPrice: Int?, discountRate: Int?, productName: String?, currencyUnit: String?, currencyUnitPosition: Int?) : Parcelable

가격 정보를 표현하기 위해 사용되는 오브젝트.

Link copied to clipboard
data class CommerceTemplate @JvmOverloads constructor(content: Content, commerce: Commerce, buttons: List<Button>?, buttonTitle: String?) : DefaultTemplate, Parcelable

기본 템플릿으로 제공되는 커머스 템플릿 클래스

Link copied to clipboard
data class Content @JvmOverloads constructor(title: String?, imageUrl: String?, link: Link, description: String?, imageWidth: Int?, imageHeight: Int?) : Parcelable

콘텐츠의 내용을 담고 있는 오브젝트.

Link copied to clipboard
interface DefaultTemplate

Kakao SDK의 기본 템플릿을 나타내는 인터페이스.

Link copied to clipboard
data class FeedTemplate @JvmOverloads constructor(content: Content, itemContent: ItemContent?, social: Social?, buttons: List<Button>?, buttonTitle: String?) : DefaultTemplate, Parcelable

기본 템플릿으로 제공되는 피드 템플릿 클래스.

Link copied to clipboard
enum IdType : Enum<IdType>

id의 타입, event(공개 일정) 또는 calendar(구독 캘린더) 중 하나

Link copied to clipboard
data class ItemContent @JvmOverloads constructor(profileText: String?, profileImageUrl: String?, titleImageText: String?, titleImageUrl: String?, titleImageCategory: String?, items: List<ItemInfo>?, sum: String?, sumOp: String?) : Parcelable

아이템 목록 형태의 콘텐츠의 내용을 담고 있는 오브젝트.

Link copied to clipboard
data class ItemInfo(item: String, itemOp: String) : Parcelable

아이템 목록 형태의 콘텐츠의 내용을 담고 있는 오브젝트.

Link copied to clipboard
data class Link @JvmOverloads constructor(webUrl: String?, mobileWebUrl: String?, androidExecutionParams: Map<String, String>?, iosExecutionParams: Map<String, String>?) : Parcelable

메시지에서 콘텐츠 영역이나 버튼 클릭 시에 이동되는 링크 정보 오브젝트.

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

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

Link copied to clipboard
data class LocationTemplate @JvmOverloads constructor(address: String, content: Content, addressTitle: String?, social: Social?, buttons: List<Button>?, buttonTitle: String?) : DefaultTemplate, Parcelable

주소를 이용하여 특정 위치를 공유할 수 있는 메시지 템플릿.

Link copied to clipboard
data class Social @JvmOverloads constructor(likeCount: Int?, commentCount: Int?, sharedCount: Int?, viewCount: Int?, subscriberCount: Int?) : Parcelable

좋아요 수, 댓글 수 등의 소셜 정보를 표현하기 위해 사용되는 오브젝트.

Link copied to clipboard
data class TextTemplate @JvmOverloads constructor(text: String, link: Link, buttons: List<Button>?, buttonTitle: String?) : DefaultTemplate, Parcelable

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