Closed apomalyn closed 1 month ago
Implement a ResourceType enum:
ResourceType
kana-
kanji-
vocabulary-
Implement a ResourceUid class that:
ResourceUid
Refactor the Kana, Kanji, and Vocabulary to use ResourceUid as ID.
Kana
Kanji
Vocabulary
src/core/constants
src/core/models
ResourceType type
String uid
.fromString
uid
Depends on:
Requirements
Implement a
ResourceType
enum:kana-
kanji-
vocabulary-
Implement a
ResourceUid
class that:Refactor the
Kana
,Kanji
, andVocabulary
to useResourceUid
as ID.What needs to be done
src/core/constants
implementResourceType
enum.src/core/models
implementResourceUid
:ResourceType type
String uid
: full UID.fromString
takes:String uid
,ResourceType
will be determined based on the beginning of the stringKana
,Kanji
, andVocabulary
to useResourceUid
as ID, rename the field asuid
, (see Isar doc)Dependencies
Depends on:
Dev notes