Hutch/Models/User.swift

9e6ec710861994439ab9eb56949da4f7ffa512ff
hutch/Hutch/Models/User.swift history · blame · raw

19 lines · 451 bytes

 1import Foundation
 2
 3/// A Sourcehut user from meta.sr.ht.
 4struct User: Decodable, Sendable {
 5    let id: Int
 6    let created: String?
 7    let updated: String?
 8    let username: String
 9    let canonicalName: String
10    let email: String
11    let url: String?
12    let location: String?
13    let bio: String?
14    let avatar: String?
15    let pronouns: String?
16    let userType: String?
17    let receivesPaidServices: Bool?
18    let suspensionNotice: String?
19}