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
|
|
|
|
|
2018-09-17 23:22:37 +00:00
|
|
|
public class Relationship: Decodable {
|
2018-09-11 14:52:21 +00:00
|
|
|
public let id: String
|
|
|
|
public let following: Bool
|
|
|
|
public let followedBy: Bool
|
|
|
|
public let blocked: Bool
|
|
|
|
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"
|
|
|
|
case blocked
|
|
|
|
case muting
|
|
|
|
case mutingNotifications = "muting_notifications"
|
|
|
|
case followRequested = "requested"
|
|
|
|
case domainBlocking = "domain_blocking"
|
|
|
|
case showingReblogs = "showing_reblogs"
|
|
|
|
}
|
|
|
|
}
|