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