Skip to content

Commit 356c76b

Browse files
author
burak.uzunboy
committed
Public modifiers
1 parent 478a8cb commit 356c76b

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Sources/iOSUsefulNetworkLayer/NetworkLayer/APIConfiguration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public struct APIConfiguration<T> where T: ResponseBodyParsable {
4848
- parameter autoCache: To use that, override `cachingEndsAt:` method of Response Body Object.
4949
Then specified custom caching will be applied for that request.
5050
*/
51-
init?(hostURL: String, endPoint: String,
51+
public init?(hostURL: String, endPoint: String,
5252
requestType: NetworkLayer.RequestType = .get,
5353
headers: [String:String]? = nil,
5454
body: [String:Any]? = nil,
@@ -81,7 +81,7 @@ public struct APIConfiguration<T> where T: ResponseBodyParsable {
8181
- parameter autoCache: To use that, override `cachingEndsAt:` method of Response Body Object.
8282
Then specified custom caching will be applied for that request.
8383
*/
84-
init(url: URL,
84+
public init(url: URL,
8585
requestType: NetworkLayer.RequestType = .get,
8686
headers: [String:String]? = nil,
8787
body: [String:Any]? = nil,

Sources/iOSUsefulNetworkLayer/NetworkLayer/NetworkLayer+APIOperation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ extension NetworkLayer {
7575
}
7676

7777
/// Defines available request types.
78-
enum RequestType: String {
78+
public enum RequestType: String {
7979
/// get type request
8080
case get = "GET"
8181
/// post type request

Sources/iOSUsefulNetworkLayer/NetworkLayer/NetworkLayer+CachingTime.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ public extension NetworkLayer {
1616
var expirationDate: Date?
1717

1818
/// Initialize the object with empty value.
19-
init() {
19+
public init() {
2020
self.expirationDate = nil
2121
}
2222

2323
/**
2424
Initializes the timeobject to be cached up to specified time passed.
2525
- parameter seconds: Time represented by the seconds.
2626
*/
27-
init(seconds: Double) {
27+
public init(seconds: Double) {
2828
self.expirationDate = Date().addingTimeInterval(TimeInterval(exactly: seconds)!)
2929
}
3030

3131
/**
3232
Initializes the timeobject to be cached up to specified date.
3333
- parameter expirationDate: The `Date` object.
3434
*/
35-
init(until expirationDate: Date) {
35+
public init(until expirationDate: Date) {
3636
self.expirationDate = expirationDate
3737
}
3838
}

0 commit comments

Comments
 (0)