Tusker/Packages/Pachyderm/Sources/Pachyderm/Model/Relationship.swift

36 lines
929 B
Swift
Raw Normal View History

2018-09-11 14:52:21 +00:00
//
// Relationship.swift
// Pachyderm
//
// Created by Shadowfacts on 9/9/18.
// Copyright © 2018 Shadowfacts. All rights reserved.
//
import Foundation
public class Relationship: Decodable {
2018-09-11 14:52:21 +00:00
public let id: String
public let following: Bool
public let followedBy: Bool
2018-09-24 12:49:39 +00:00
public let blocking: Bool
2018-09-11 14:52:21 +00:00
public let muting: Bool
public let mutingNotifications: Bool
public let followRequested: Bool
public let domainBlocking: Bool
public let showingReblogs: Bool
public let endorsed: Bool?
2018-09-11 14:52:21 +00:00
private enum CodingKeys: String, CodingKey {
case id
case following
case followedBy = "followed_by"
2018-09-24 12:49:39 +00:00
case blocking
2018-09-11 14:52:21 +00:00
case muting
case mutingNotifications = "muting_notifications"
case followRequested = "requested"
case domainBlocking = "domain_blocking"
case showingReblogs = "showing_reblogs"
case endorsed
2018-09-11 14:52:21 +00:00
}
}