Implemented the Account and User models for the DataModel target.

This commit is contained in:
Javier Cicchelli 2022-12-11 20:53:44 +01:00
parent 81ca7ce6f3
commit 4f53a40f04
2 changed files with 41 additions and 0 deletions

View 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
}

View 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
}
}