mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-13 09:59:17 +01:00
56 lines
956 B
Swift
56 lines
956 B
Swift
//
|
|
// FeedbinFeed.swift
|
|
// Account
|
|
//
|
|
// Created by Brent Simmons on 12/10/17.
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import RSCore
|
|
import RSParser
|
|
|
|
struct FeedbinSubscription: Codable {
|
|
|
|
let subscriptionID: Int
|
|
let feedID: Int
|
|
let name: String?
|
|
let url: String
|
|
let homePageURL: String?
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case subscriptionID = "id"
|
|
case feedID = "feed_id"
|
|
case name = "title"
|
|
case url = "feed_url"
|
|
case homePageURL = "site_url"
|
|
}
|
|
|
|
}
|
|
|
|
struct FeedbinCreateSubscription: Codable {
|
|
let feedURL: String
|
|
enum CodingKeys: String, CodingKey {
|
|
case feedURL = "feed_url"
|
|
}
|
|
}
|
|
|
|
struct FeedbinUpdateSubscription: Codable {
|
|
let title: String
|
|
enum CodingKeys: String, CodingKey {
|
|
case title
|
|
}
|
|
}
|
|
|
|
struct FeedbinSubscriptionChoice: Codable {
|
|
|
|
let name: String?
|
|
let url: String
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case name = "title"
|
|
case url = "feed_url"
|
|
}
|
|
|
|
}
|