Implemented the Account and User models for the DataModel target.
This commit is contained in:
parent
81ca7ce6f3
commit
4f53a40f04
12
Libraries/Sources/DataModels/Models/Account.swift
Normal file
12
Libraries/Sources/DataModels/Models/Account.swift
Normal file
@ -0,0 +1,12 @@
|
||||
//
|
||||
// Account.swift
|
||||
// DataModels
|
||||
//
|
||||
// Created by Javier Cicchelli on 11/12/2022.
|
||||
// Copyright © 2022 Röck+Cöde. All rights reserved.
|
||||
//
|
||||
|
||||
public struct Account: Codable {
|
||||
public let username: String
|
||||
public let password: String
|
||||
}
|
29
Libraries/Sources/DataModels/Models/User.swift
Normal file
29
Libraries/Sources/DataModels/Models/User.swift
Normal file
@ -0,0 +1,29 @@
|
||||
//
|
||||
// User.swift
|
||||
// DataModels
|
||||
//
|
||||
// Created by Javier Cicchelli on 11/12/2022.
|
||||
// Copyright © 2022 Röck+Cöde. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
public struct User {
|
||||
public let profile: Profile
|
||||
public let rootFolder: RootFolder
|
||||
}
|
||||
|
||||
// MARK: - Structs
|
||||
|
||||
extension User {
|
||||
public struct Profile {
|
||||
public let firstName: String
|
||||
public let lastName: String
|
||||
}
|
||||
|
||||
public struct RootFolder {
|
||||
public let id: String
|
||||
public let name: String
|
||||
public let lastModifiedAt: Date
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user