TwarrtData
public struct TwarrtData : Content
Used to return a Twarrt‘s data.
Returned by:
POST /api/v3/twitarr/createPOST /api/v3/twitarr/ID/updatePOST /api/v3/twitarr/ID/imagePOST /api/v3/twitarr/ID/image/removePOST /api/v3/twitarr/ID/laughPOST /api/v3/twitarr/ID/likePOST /api/v3/twitarr/ID/lovePOST /api/v3/twitarr/ID/unreactPOST /api/v3/twitarr/ID/replyGET /api/v3/twitarr/bookmarksGET /api/v3/twitarr/likesGET /api/v3/twitarr/mentionsGET /api/v3/twitarr/GET /api/v3/twitarr/barrel/IDGET /api/v3/twitarr/hashtag/#STRINGGET /api/v3/twitarr/search/STRINGGET /api/v3/twitarr/userGET /api/v3/twitarr/user/ID
See TwitarrController.twarrtCreateHandler(_:data:), TwitarrController.twarrtUpdateHandler(_:data:)
TwitarrController. imageHandler(_:data:), TwitarrController.imageRemoveHandler(_:)
TwitarrController.twarrtLaughHandler(_:), TwitarrController.twarrtLikeHandler(_:),
TwitarrController.twarrtLoveHandler(_:), TwitarrController.twarrtUnreactHandler(_:),
TwitarrController.replyHandler(_:data:), TwitarrController.bookmarksHandler(_:),
TwitarrController.likesHandler(_:), TwitarrController.mentionsHandler(_:),
TwitarrController.twarrtsHandler(_:), TwitarrController.twarrtsBarrelHandler(_:),
TwitarrController.twarrtsHashtagHandler(_:), TwitarrController.twarrtsSearchHandler(_:),
TwitarrController.twarrtsUserHandler(_:), TwitarrController.userHandler(_:).
-
The ID of the twarrt.
Declaration
Swift
var twarrtID: Int -
The timestamp of the twarrt.
Declaration
Swift
var createdAt: Date -
The twarrt’s author.
Declaration
Swift
var author: UserHeader -
The text of the twarrt.
Declaration
Swift
var text: String -
The filenames of the twarrt’s optional images.
Declaration
Swift
var images: [String]? -
If this twarrt is part of a Reply Group, the ID of the group. If replyGroupID == twarrtID, this twarrt is the start of a Reply Group. If nil, there are no replies to this twarrt.
Declaration
Swift
var replyGroupID: Int? -
Whether the current user has bookmarked the twarrt.
Declaration
Swift
var isBookmarked: Bool -
The total number of
LikeTypereactions on the twarrt.Declaration
Swift
var likeCount: Int -
Declaration
Swift
init( twarrt: Twarrt, creator: UserHeader, isBookmarked: Bool, userLike: LikeType?, likeCount: Int, overrideQuarantine: Bool = false ) throws
View on GitHub