Skip to content

Instantly share code, notes, and snippets.

@cipolleschi
Created July 29, 2021 06:46
Response(
content: [
.text(
.init(
id: UUID(),
author: UUID(),
likes: 70,
createdAt: Date()
),
.init(text: "A text")
),
.picture(
.init(
id: UUID(),
author: UUID(),
likes: 143,
createdAt: Date()
),
.init(url: URL(string: "https://a.url.com/to/a/picture")!, caption: "A Caption")
),
.video(
.init(
id: UUID(),
author: UUID(),
likes: 7423,
createdAt: Date()
),
.init(url: URL(string: "https://a.url.com/to/a/video")!, duration: 12)
)
],
prev: nil,
next: URL(string: "https://a.url.com/to/next/page")!
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment