-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into devp/point-shop-feature
- Loading branch information
Showing
111 changed files
with
1,010 additions
and
338 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,18 @@ | ||
// | ||
// MentorService.swift | ||
// HackIllinois | ||
// | ||
// Created by HackIllinois Team on 2/10/24. | ||
// Copyright © 2024 HackIllinois. All rights reserved. | ||
// This file is part of the Hackillinois iOS App. | ||
// The Hackillinois iOS App is open source software, released under the University of | ||
// Illinois/NCSA Open Source License. You should have received a copy of | ||
// this license in a file with the distribution. | ||
// | ||
|
||
import Foundation | ||
import APIManager | ||
|
||
public struct MentorAttendanceContainer: Codable, APIReturnable { | ||
public let status: String | ||
} |
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
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,29 @@ | ||
// | ||
// MentorService.swift | ||
// HackIllinois | ||
// | ||
// Created by HackIllinois Team on 2/10/24. | ||
// Copyright © 2024 HackIllinois. All rights reserved. | ||
// This file is part of the Hackillinois iOS App. | ||
// The Hackillinois iOS App is open source software, released under the University of | ||
// Illinois/NCSA Open Source License. You should have received a copy of | ||
// this license in a file with the distribution. | ||
// | ||
|
||
import Foundation | ||
import APIManager | ||
|
||
public final class MentorService: BaseService { | ||
public override static var baseURL: String { | ||
return super.baseURL + "mentor/" | ||
} | ||
|
||
public static func recordMentorAttendance(userToken: String, mentorId: String) -> APIRequest<MentorAttendanceContainer> { | ||
var headers = HTTPHeaders() | ||
headers["Authorization"] = userToken | ||
var body = HTTPBody() | ||
body["mentorId"] = userToken | ||
return APIRequest<MentorAttendanceContainer>(service: self, endpoint: "attendance/", body: body, headers: headers, method: .POST) | ||
} | ||
|
||
} |
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
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
Oops, something went wrong.