QuartermasterEditLogData
public struct QuartermasterEditLogData : Content
Used to return QuartermasterItemEdit data for moderators. The only primary data an edit stores is the item
name, description, and location text fields, plus whether the owner’s name was hidden at the time of the edit.
Included in:
Returned by:
GET /api/v3/mod/quartermaster/ID
-
The ID of the item.
Declaration
Swift
var itemID: UUID -
The ID of the edit.
Declaration
Swift
var editID: UUID -
The timestamp of the edit.
Declaration
Swift
var createdAt: Date -
Who initiated the edit. Usually the item’s owner, but could be a moderator. Note that the saved edit shows the state BEFORE the edit, therefore the ‘author’ here changed the contents to those of the NEXT edit (or to the current state).
Declaration
Swift
var author: UserHeader -
The item name just before
authoredited it.Declaration
Swift
var itemName: String -
The item description just before
authoredited it. Empty string if there was none.Declaration
Swift
var itemDescription: String -
The location just before
authoredited it. Empty string if there was none.Declaration
Swift
var location: String -
The image filename just before
authoredited it. Empty string if there was none.Declaration
Swift
var image: String -
Whether the owner’s name was hidden from other users just before
authoredited it.Declaration
Swift
var hideOwnerName: Bool -
Declaration
Swift
init(_ edit: QuartermasterItemEdit, on req: Request) throws
View on GitHub