-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from FOR-GRAD/21-졸업-요건-ui
21 졸업 요건 UI
- Loading branch information
Showing
63 changed files
with
2,429 additions
and
123 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
app/src/main/java/umc/com/mobile/project/data/model/plan/AddTimeResponse.kt
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 @@ | ||
package umc.com.mobile.project.data.model.plan | ||
|
||
data class AddTimeResponse( | ||
val semesterDto: SemesterDto, | ||
val subjectDtoList: List<SubjectDtoList>, | ||
) | ||
|
||
data class SemesterDto( | ||
val grade: Long, | ||
val semester: Long, | ||
) | ||
|
||
data class SubjectDtoList( | ||
val type: String, | ||
val name: String, | ||
val credit: Long, | ||
) | ||
|
16 changes: 16 additions & 0 deletions
16
app/src/main/java/umc/com/mobile/project/data/model/plan/BringlicenseResponse.kt
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,16 @@ | ||
package umc.com.mobile.project.data.model.plan | ||
|
||
import java.time.LocalDateTime | ||
|
||
data class BringlicenseResponse( | ||
val isSuccess: Boolean, | ||
val code: String, | ||
val message: String, | ||
val result: List<BringResult>, | ||
) | ||
|
||
data class BringResult( | ||
val certificateId: Long, | ||
val createdAt: String, | ||
) | ||
|
17 changes: 17 additions & 0 deletions
17
app/src/main/java/umc/com/mobile/project/data/model/plan/ListTimeResponse.kt
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,17 @@ | ||
package umc.com.mobile.project.data.model.plan | ||
|
||
|
||
|
||
data class ListTimeResponse( | ||
val isSuccess: Boolean, | ||
val code: String, | ||
val message: String, | ||
val result: List<TimeResult>, | ||
) | ||
|
||
data class TimeResult( | ||
val searchGrade: String, | ||
val searchType: String, | ||
val searchName: String, | ||
val searchCredit: String, | ||
) |
14 changes: 14 additions & 0 deletions
14
app/src/main/java/umc/com/mobile/project/data/model/plan/PlanTrackResponse.kt
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 @@ | ||
package umc.com.mobile.project.data.model.plan | ||
|
||
data class PlanTrackResponse( | ||
val isSuccess: Boolean, | ||
val code: String, | ||
val message: String, | ||
val result: List<TrackResult>, | ||
) | ||
|
||
data class TrackResult( | ||
val trackCode: String, | ||
val trackName: String, | ||
) | ||
|
16 changes: 16 additions & 0 deletions
16
app/src/main/java/umc/com/mobile/project/data/model/plan/SavelicenseRequest.kt
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,16 @@ | ||
package umc.com.mobile.project.data.model.plan | ||
|
||
import java.time.LocalDate | ||
|
||
|
||
data class SaveInfo( | ||
val name: String, | ||
val date: String | ||
) | ||
|
||
data class SavelicenseRequest( | ||
val info: List<SaveInfo> | ||
) | ||
|
||
|
||
|
17 changes: 17 additions & 0 deletions
17
app/src/main/java/umc/com/mobile/project/data/model/plan/SemesterTimeResponse.kt
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,17 @@ | ||
package umc.com.mobile.project.data.model.plan | ||
|
||
data class SemesterTimeResponse( | ||
val isSuccess: Boolean, | ||
val code: String, | ||
val message: String, | ||
val result: List<semesterResult>, | ||
) { | ||
|
||
|
||
} | ||
|
||
data class semesterResult( | ||
val hakkiNum: String, | ||
val hakkiText: String, | ||
) | ||
|
14 changes: 14 additions & 0 deletions
14
app/src/main/java/umc/com/mobile/project/data/model/plan/UPlicenseResponse.kt
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 @@ | ||
package umc.com.mobile.project.data.model.plan | ||
|
||
data class UPlicenseResponse( | ||
val isSuccess: Boolean, | ||
val code: String, | ||
val message: String, | ||
val result: List<Result>, | ||
) | ||
|
||
data class Result( | ||
val certificateId: Long, | ||
val name: String, | ||
val date: String, | ||
) |
38 changes: 38 additions & 0 deletions
38
app/src/main/java/umc/com/mobile/project/data/network/api/PlanApi.kt
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,38 @@ | ||
package umc.com.mobile.project.data.network.api | ||
|
||
import retrofit2.http.GET | ||
import retrofit2.Call | ||
import retrofit2.http.Body | ||
import retrofit2.http.POST | ||
import retrofit2.http.Query | ||
import umc.com.mobile.project.data.model.plan.BringlicenseResponse | ||
import umc.com.mobile.project.data.model.plan.ListTimeResponse | ||
import umc.com.mobile.project.data.model.plan.PlanTrackResponse | ||
import umc.com.mobile.project.data.model.plan.SaveInfo | ||
import umc.com.mobile.project.data.model.plan.SemesterTimeResponse | ||
import umc.com.mobile.project.data.model.plan.UPlicenseResponse | ||
|
||
|
||
interface PlanApi { | ||
@GET("plans/certifications") | ||
fun getUPlicense(): Call<UPlicenseResponse> | ||
|
||
|
||
@POST("plans/certifications") | ||
fun saveLicense(@Body request: List<SaveInfo>): Call<BringlicenseResponse> | ||
|
||
|
||
|
||
|
||
@GET("/plans/timetable/searchSubject") | ||
fun getListTime(@Query("hakki") hakki:String, @Query("track") track : String) : Call<ListTimeResponse> | ||
|
||
@GET("/plans/timetable/searchTrack") | ||
fun getTrackInfo(@Query("hakki") hakki: String) : Call<PlanTrackResponse> | ||
|
||
@GET("/plans/timetable/searchHakki") | ||
fun getSemesterInfo():Call<SemesterTimeResponse> | ||
|
||
|
||
|
||
} |
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
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
34 changes: 34 additions & 0 deletions
34
app/src/main/java/umc/com/mobile/project/ui/plan/PlanFreeFragment.kt
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,34 @@ | ||
package umc.com.mobile.project.ui.plan | ||
|
||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import androidx.fragment.app.Fragment | ||
import androidx.fragment.app.viewModels | ||
import umc.com.mobile.project.databinding.FragmentPlanFreeBinding | ||
import umc.com.mobile.project.ui.plan.PlanViewModel | ||
|
||
class PlanFreeFragment : Fragment() { | ||
private var _binding: FragmentPlanFreeBinding? = null | ||
private val viewModel: PlanViewModel by viewModels() | ||
private val binding get() = _binding!! | ||
|
||
override fun onCreateView( | ||
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? | ||
): View { | ||
_binding = FragmentPlanFreeBinding.inflate(inflater, container, false) | ||
|
||
viewModel.text.observe(viewLifecycleOwner) { text -> | ||
// Update your UI here with the LiveData update | ||
// Make sure 'textViewExample' matches the ID of the TextView in your layout | ||
// binding.textViewExample.text = text | ||
} | ||
return binding.root | ||
} | ||
|
||
override fun onDestroyView() { | ||
super.onDestroyView() | ||
_binding = null | ||
} | ||
} |
Oops, something went wrong.