Skip to content

Instantly share code, notes, and snippets.

View pandaApe's full-sized avatar
🎯
Focusing

pandaApe pandaApe

🎯
Focusing
View GitHub Profile
@pandaApe
pandaApe / .swift
Created July 27, 2017 08:52
Moya Download File
import Foundation
import Moya
let endpointClosure = {
(target: FileService) -> Endpoint<FileService> in
let url = URL(string: target.path)?.absoluteString
return Endpoint(URL: url!,enter code here sampleResponseClosure: { .networkResponse(200, target.sampleData) }, method: target.method, parameters: target.parameters)
}
//
// MLDeviceInfoReader.h
//
// Created by PandaApe on 09/11/2016.
// Copyright © 2016 PandaApe. All rights reserved.
//
#import <Foundation/Foundation.h>