NetNewsWire/Frameworks/Account/GoogleReaderCompatible/GoogleReaderCompatibleTag.s...

52 lines
844 B
Swift
Raw Normal View History

//
// GoogleReaderCompatibleTag.swift
// Account
//
// Created by Maurice Parker on 5/5/19.
// Copyright © 2019 Ranchero Software, LLC. All rights reserved.
//
import Foundation
2019-06-01 14:08:19 +02:00
struct GoogleReaderCompatibleTagContainer: Codable {
2019-05-30 22:01:56 +02:00
let tags: [GoogleReaderCompatibleTag]
enum CodingKeys: String, CodingKey {
case tags = "tags"
}
}
struct GoogleReaderCompatibleTag: Codable {
2019-05-30 22:01:56 +02:00
let tagID: String
let type: String?
enum CodingKeys: String, CodingKey {
case tagID = "id"
2019-05-30 22:01:56 +02:00
case type = "type"
}
}
struct GoogleReaderCompatibleRenameTag: Codable {
let oldName: String
let newName: String
enum CodingKeys: String, CodingKey {
case oldName = "old_name"
case newName = "new_name"
}
}
struct GoogleReaderCompatibleDeleteTag: Codable {
let name: String
enum CodingKeys: String, CodingKey {
case name
}
}