ListTemplate
여러 개의 컨텐츠를 리스트 형태로 보여줄 수 있는 메시지 템플릿 입니다.
리스트 템플릿은 메시지 상단에 노출되는 헤더 타이틀과, 컨텐츠 목록, 버튼 등으로 구성됩니다. 헤더와 컨텐츠 각각의 링크를 가질 수 있습니다. 피드 템플릿과 마찬가지로 하나의 기본 버튼을 가지며 임의의 버튼을 설정할 수 있습니다.
let template = ListTemplate(headerTitle: "WEEKLY MAGAZINE",
headerLink: Link(mobileWebUrl: URL(string: "https://developers.kakao.com")!),
contents: [Content(title: "취미의 특징, 탁구",
imageUrl: URL(string: "http://mud-kage.kakao.co.kr/dn/bDPMIb/btqgeoTRQvd/49BuF1gNo6UXkdbKecx600/kakaolink40_original.png")!,
description: "스포츠",
link: Link(mobileWebUrl: URL(string: "https://developers.kakao.com")!)),
Content(title: "크림으로 이해하는 커피이야기",
imageUrl: URL(string: "http://mud-kage.kakao.co.kr/dn/QPeNt/btqgeSfSsCR/0QJIRuWTtkg4cYc57n8H80/kakaolink40_original.png")!,
description: "음식",
link: Link(mobileWebUrl: URL(string: "https://developers.kakao.com")!)),
Content(title: "감성이 가득한 분위기",
imageUrl: URL(string: "http://mud-kage.kakao.co.kr/dn/c7MBX4/btqgeRgWhBy/ZMLnndJFAqyUAnqu4sQHS0/kakaolink40_original.png")!,
description: "사진",
link: Link(mobileWebUrl: URL(string: "https://developers.kakao.com")!)),])