CategoryData
public struct CategoryData : Content
Used to return the ID and title of a Category
.
Returned by:
GET /api/v3/forum/categories
GET /api/v3/forum/catgories/ID
-
The ID of the category.
Declaration
Swift
var categoryID: UUID
-
The title of the category.
Declaration
Swift
var title: String
-
The purpose string for the category.
Declaration
Swift
var purpose: String
-
If TRUE, the user cannot create/modify threads in this forum. Should be sorted to top of category list.
Declaration
Swift
var isRestricted: Bool
-
if TRUE, this category is for Event Forums, and is prepopulated with forum threads for each Schedule Event.
Declaration
Swift
var isEventCategory: Bool
-
The number of threads in this category
Declaration
Swift
var numThreads: Int32
-
The threads in the category. Only populated for /categories/ID.
Declaration
Swift
var forumThreads: [ForumListData]?
-
Declaration
Swift
init(_ cat: Category, restricted: Bool, forumThreads: [ForumListData]? = nil) throws