-
Notifications
You must be signed in to change notification settings - Fork 0
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
1a494a6
commit 7830680
Showing
8 changed files
with
78 additions
and
39 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
Binary file modified
BIN
+47.4 KB
(120%)
...j/project.xcworkspace/xcuserdata/gim-eung-gwan.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
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
27 changes: 27 additions & 0 deletions
27
Sopt_Seminar/Sopt_Seminar/Week3/Assignment/Network/MovieService.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,27 @@ | ||
// | ||
// MovieService.swift | ||
// Sopt_Seminar | ||
// | ||
// Created by 김응관 on 2023/05/12. | ||
// | ||
|
||
import Alamofire | ||
import Foundation | ||
|
||
final class MovieService { | ||
|
||
static let shared = MovieService() | ||
|
||
private init() {} | ||
|
||
//75df104409445c36a314b12eb0aa5fdb | ||
|
||
func getInfo(key: String, completion: @escaping (NetworkState<Any>) -> Void) { | ||
|
||
|
||
|
||
} | ||
|
||
|
||
|
||
} |
26 changes: 26 additions & 0 deletions
26
Sopt_Seminar/Sopt_Seminar/Week3/Assignment/Protocols/Enums.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,26 @@ | ||
// | ||
// UserInfo.swift | ||
// Sopt_Seminar | ||
// | ||
// Created by 김응관 on 2023/05/08. | ||
// | ||
|
||
import Foundation | ||
|
||
enum LoginState: String { | ||
case logIn | ||
case logOut | ||
} | ||
|
||
enum NetworkState<T> { | ||
case success(T) // 서버 통신 성공 | ||
case requestErr(T) // 요청에러 발생 | ||
case pathErr // 경로 에러 | ||
case serverErr // 서버 내부 에러 | ||
case networkErr // 네트워크 연결 실패 | ||
} | ||
|
||
|
||
// API 키: 75df104409445c36a314b12eb0aa5fdb | ||
// API 요청 예시: https://api.themoviedb.org/3/movie/550?api_key=75df104409445c36a314b12eb0aa5fdb | ||
// API 읽기 액세스 토큰: eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiI3NWRmMTA0NDA5NDQ1YzM2YTMxNGIxMmViMGFhNWZkYiIsInN1YiI6IjY0NWQxNDg2M2ZlMTYwMDE3MjI2N2FhMSIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.VAMyXI3CfXx3hI3LNDWVJDxMt7a-uy1Pq2ay6NTJ18M |
File renamed without changes.
13 changes: 0 additions & 13 deletions
13
Sopt_Seminar/Sopt_Seminar/Week3/Assignment/Protocols/UserInfo.swift
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