summaryrefslogtreecommitdiff
path: root/Hutch/Models/User.swift
blob: 625cfdc4c0d5bcc6da903d8c04c3a8b8ba08f377 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import Foundation

/// A Sourcehut user from meta.sr.ht.
struct User: Decodable, Sendable {
    let id: Int
    let created: String?
    let updated: String?
    let username: String
    let canonicalName: String
    let email: String
    let url: String?
    let location: String?
    let bio: String?
    let avatar: String?
    let pronouns: String?
    let userType: String?
    let receivesPaidServices: Bool?
    let suspensionNotice: String?
}