-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
60b8304
commit c367b9c
Showing
10 changed files
with
171 additions
and
50 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
22 changes: 22 additions & 0 deletions
22
Project_Timer/Domain/UseCase/Firebase/GetAppVersionUseCase.swift
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,22 @@ | ||
// | ||
// GetAppVersionUseCase.swift | ||
// Project_Timer | ||
// | ||
// Created by Kang Minsang on 2024/06/29. | ||
// Copyright © 2024 FDEE. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Combine | ||
|
||
final class GetAppVersionUseCase { | ||
private let repository: FirebaseRepository // TODO: 프로토콜로 수정 | ||
|
||
init(repository: FirebaseRepository) { | ||
self.repository = repository | ||
} | ||
|
||
func execute() -> AnyPublisher<AppLatestVersionInfo, NetworkError> { | ||
return self.repository.getAppVersion() | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Project_Timer/Domain/UseCase/Firebase/GetServerURLUseCase.swift
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,22 @@ | ||
// | ||
// GetServerURLUseCase.swift | ||
// Project_Timer | ||
// | ||
// Created by Kang Minsang on 2024/06/29. | ||
// Copyright © 2024 FDEE. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Combine | ||
|
||
final class GetServerURLUseCasee { | ||
private let repository: FirebaseRepository // TODO: 프로토콜로 수정 | ||
|
||
init(repository: FirebaseRepository) { | ||
self.repository = repository | ||
} | ||
|
||
func execute() -> AnyPublisher<String, NetworkError> { | ||
return self.repository.getServerURL() | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Project_Timer/Domain/UseCase/Firebase/GetSurveysUseCase.swift
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,22 @@ | ||
// | ||
// GetSurveysUseCase.swift | ||
// Project_Timer | ||
// | ||
// Created by Kang Minsang on 2024/06/29. | ||
// Copyright © 2024 FDEE. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Combine | ||
|
||
final class GetSurveysUseCase { | ||
private let repository: FirebaseRepository // TODO: 프로토콜로 수정 | ||
|
||
init(repository: FirebaseRepository) { | ||
self.repository = repository | ||
} | ||
|
||
func execute() -> AnyPublisher<[SurveyInfo], NetworkError> { | ||
return self.repository.getSurveys() | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Project_Timer/Domain/UseCase/Firebase/GetTiTiFunctionsUseCase.swift
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,22 @@ | ||
// | ||
// GetTiTiFunctionsUseCase.swift | ||
// Project_Timer | ||
// | ||
// Created by Kang Minsang on 2024/06/29. | ||
// Copyright © 2024 FDEE. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Combine | ||
|
||
final class GetTiTiFunctionsUseCase { | ||
private let repository: FirebaseRepository // TODO: 프로토콜로 수정 | ||
|
||
init(repository: FirebaseRepository) { | ||
self.repository = repository | ||
} | ||
|
||
func execute() -> AnyPublisher<[FunctionInfo], NetworkError> { | ||
return self.repository.getTiTiFunctions() | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Project_Timer/Domain/UseCase/Firebase/GetUpdateHistorysUseCase.swift
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,22 @@ | ||
// | ||
// GetUpdateHistorysUseCase.swift | ||
// Project_Timer | ||
// | ||
// Created by Kang Minsang on 2024/06/29. | ||
// Copyright © 2024 FDEE. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Combine | ||
|
||
final class GetUpdateHistorysUseCase { | ||
private let repository: FirebaseRepository // TODO: 프로토콜로 수정 | ||
|
||
init(repository: FirebaseRepository) { | ||
self.repository = repository | ||
} | ||
|
||
func execute() -> AnyPublisher<[UpdateHistoryInfo], NetworkError> { | ||
return self.repository.getUpdateHistorys() | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Project_Timer/Domain/UseCase/Firebase/GetYoutubeLinkUseCase.swift
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,22 @@ | ||
// | ||
// GetYoutubeLinkUseCase.swift | ||
// Project_Timer | ||
// | ||
// Created by Kang Minsang on 2024/06/29. | ||
// Copyright © 2024 FDEE. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import Combine | ||
|
||
final class GetYoutubeLinkUseCase { | ||
private let repository: FirebaseRepository // TODO: 프로토콜로 수정 | ||
|
||
init(repository: FirebaseRepository) { | ||
self.repository = repository | ||
} | ||
|
||
func execute() -> AnyPublisher<String, NetworkError> { | ||
return self.repository.getYoutubeLink() | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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