//
//  Update.swift
//  SwiftIpfsApi
//
//  Created by Teo on 10/11/15.
//  Copyright © 2015 Teo Sartori. All rights reserved.
//
//  Licensed under MIT See LICENCE file in the root of this project for details.

public class Update : ClientSubCommand {
    
    var parent: IPFSBase?
    
    public func check(_ completionHandler: @escaping (JsonType) -> Void) throws {
        
        try parent!.fetchJson("update/check", completionHandler: completionHandler )
    }
    
    public func log(_ completionHandler: @escaping (JsonType) -> Void) throws {
        
        try parent!.fetchJson("update/log", completionHandler: completionHandler )
    }
}
