21 lines
421 B
Kotlin
21 lines
421 B
Kotlin
package com.example.calrendarview.model
|
|
|
|
import android.os.Build
|
|
import androidx.annotation.RequiresApi
|
|
import java.time.LocalDate
|
|
|
|
@RequiresApi(Build.VERSION_CODES.O)
|
|
class CalendarPod {
|
|
|
|
constructor(date: LocalDate) {
|
|
this.year = date.year
|
|
this.month = date.monthValue
|
|
}
|
|
constructor(y: Int, m: Int) {
|
|
this.year = y
|
|
this.month = m
|
|
}
|
|
|
|
val year: Int
|
|
val month: Int
|
|
} |