This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
class RSSFeedParser : ApplicationListener<ContextRefreshedEvent> { | |
@Autowired | |
val feedRepo : FeedRepository? = null | |
var didStart : Boolean = false | |
var timer = Timer("schedule", true); | |
fun fetchFeeds() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Connection : NSObject, StreamDelegate { | |
var host:String? | |
var port:Int? | |
var inputStream: InputStream? | |
var outputStream: OutputStream? | |
func connect(host: String, port: Int) { | |
self.host = host | |
self.port = port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SCLabel.swift | |
// SwiftCast | |
// | |
// Created by Peter Gosling on 12/7/16. | |
// Copyright © 2016 SunfireSoft. All rights reserved. | |
// | |
import UIKit |