FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SwinjectMVVMExample/ExampleModel/Networking.swift at master · Swinject/SwinjectMVVMExample · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Aug 21, 2021. It is now read-only.
Swinject
/
SwinjectMVVMExample
Public archive
Notifications
You must be signed in to change notification settings
Fork
34
Star
322
Code
Issues
1
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
SwinjectMVVMExample
/
ExampleModel
/
Networking.swift
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (14 loc) · 555 Bytes
Breadcrumbs
SwinjectMVVMExample
/
ExampleModel
/
Networking.swift
Copy path
File metadata and controls
17 lines (14 loc) · 555 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//
// Networking.swift
// SwinjectMVVMExample
//
// Created by Yoichi Tagaya on 8/22/15.
// Copyright © 2015 Swinject Contributors. All rights reserved.
//
import
ReactiveSwift
public
protocol
Networking
{
/// Returns a `SignalProducer` emitting a JSON root element ( an array or dictionary).
func
requestJSON
(
_ url
:
String
,
parameters
:
[
String
:
AnyObject
]
?
)
->
SignalProducer
<
Any
,
NetworkError
>
/// Returns a `SignalProducer` emitting an `UIImage`.
func
requestImage
(
_ url
:
String
)
->
SignalProducer
<
UIImage
,
NetworkError
>
}
Back
|
FazBrowse Home
|
New Git URL