forked from agzam/vyatsu-schedule
14 lines
506 B
Kotlin
14 lines
506 B
Kotlin
package agzam.vyatsu.data.remote
|
|||
|
|
|
||
|
|
import agzam.vyatsu.domain.model.DateRange
|
||
|
|
import agzam.vyatsu.domain.model.Season
|
||
|
|
|
||
|
|
object VyatsuUrls {
|
||
|
|
|
||
|
|
const val GROUPS_PAGE = "https://www.vyatsu.ru/studentu-1/spravochnaya-informatsiya/raspisanie-zanyatiy-dlya-studentov.html"
|
||
|
|
const val PDF_BASEURL = "https://www.vyatsu.ru/reports/schedule/Group"
|
||
|
|
|
||
|
|
fun groupPdfUrl(groupId: String, season: Season, range: DateRange): String = "$PDF_BASEURL/${groupId}_${season.apiKey}_${range.first}_${range.second}.pdf"
|
||
|
|
|
||
|
|
}
|