mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-15 18:36:01 -04:00
Merge pull request #3006 from kiwix/Issue#3005
Convert RecentSearchSpec.java into kotlin
This commit is contained in:
commit
bee82ecd75
@ -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
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user