21 lines
421 B
Kotlin
Raw Normal View History

2024-12-20 16:18:45 +09:00
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
}