32 lines
559 B
Swift
32 lines
559 B
Swift
//
|
|
// Types.swift
|
|
// feedless
|
|
//
|
|
// Created by Rogerio Chaves on 04/05/20.
|
|
// Copyright © 2020 Rogerio Chaves. All rights reserved.
|
|
//
|
|
|
|
struct Post: Codable {
|
|
public var text: String
|
|
}
|
|
|
|
struct AuthorContent<T: Codable>: Codable {
|
|
public var author: String
|
|
public var content: T
|
|
}
|
|
|
|
struct Entry<T: Codable>: Codable {
|
|
public var key: String
|
|
public var value: T
|
|
}
|
|
|
|
struct Profile: Codable {
|
|
public var id: String
|
|
public var name: String
|
|
public var image: String
|
|
}
|
|
|
|
struct User : Codable {
|
|
public var profile: Profile?
|
|
}
|