Merge pull request #3006 from kiwix/Issue#3005

Convert RecentSearchSpec.java into kotlin
This commit is contained in:
Kelson 2022-10-19 22:00:43 +02:00 committed by GitHub
commit bee82ecd75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,16 +15,19 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
package org.kiwix.kiwixmobile.core.data.local.entity; package org.kiwix.kiwixmobile.core.data.local.entity
import com.yahoo.squidb.annotations.TableModelSpec; import com.yahoo.squidb.annotations.TableModelSpec
import com.yahoo.squidb.annotations.tables.constraints.NotNull; import com.yahoo.squidb.annotations.tables.constraints.NotNull
/** /**
* Squidb spec for recent searches. * Squidb spec for recent searches.
*/ */
@TableModelSpec(className = "RecentSearch", tableName = "recentSearches") @TableModelSpec(className = "RecentSearch", tableName = "recentSearches")
public class RecentSearchSpec { class RecentSearchSpec {
@NotNull public String searchString; @NotNull
@NotNull String zimID; lateinit var searchString: String
@NotNull
lateinit var zimID: String
} }