-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
81 additions
and
42 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// Response.swift | ||
// SwiftyNetworking | ||
// | ||
// Created by Antonio Guerra on 19/09/24. | ||
// | ||
|
||
import Foundation | ||
|
||
public enum Response<Model: Decodable> { | ||
case loading | ||
case success(Model) | ||
case failure(Error) | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// | ||
// Refreshable.swift | ||
// SwiftyNetworking | ||
// | ||
// Created by Antonio Guerra on 19/09/24. | ||
// | ||
|
||
public protocol Refreshable { | ||
func refresh() async | ||
} |
24 changes: 0 additions & 24 deletions
24
Tests/SwiftyNetworkingTests/PropertyWrappers/RequestTests.swift
This file was deleted.
Oops, something went wrong.