/** Ċ * ĠCopyright ĠS or am its u ĠCo ., ĠLtd . ĠAll ĠRights ĠReserved . Ċ * ĠSPDX - License - Identifier : ĠGPL - 3 . 0 Ċ */ Ċ Ċ package Ġjp . co . sor am its u . feature _ main _ impl . domain Ċ Ċ import Ġjp . co . sor am its u . common . domain . Response Code Ċ import Ġjp . co . sor am its u . common . domain . S ora Exception Ċ import Ġjp . co . sor am its u . common . domain . credentials . Credentials Repository Ċ import Ġjp . co . sor am its u . common . res our ses . Language Ċ import Ġjp . co . sor am its u . feature _ account _ api . domain . interfaces . UserRepository Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠMain Interactor Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġuser Repository : ĠUser Repository , ĊĠĠĠ Ġprivate Ġval Ġcredentials Repository : ĠCredentials Repository , Ċ ) Ġ{ ĊĊĠĠĠ Ġsuspend Ġfun Ġget Mnemonic (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġcredentials Repository . retrieve Mnemonic (). if Empty Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthrow ĠS ora Exception . business Error ( Response Code . GENERAL _ ERROR ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġvote For Refer endum ( refer endum Id : ĠString , Ġvotes : ĠLong ) Ġ{ ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġvote Again st Refer endum ( refer endum Id : ĠString , Ġvotes : ĠLong ) Ġ{ ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġsync Votes () Ġ{ ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġget App Version (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġuser Repository . getApp Version () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġget Invite Code (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġuser Repository . getParent Invite Code () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġget Available Language sWith Selected (): ĠPair < List < Language >, ĠString > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġuser Repository . get Available Languages () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġchange Language ( language : ĠString ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġuser Repository . change Language ( language ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġset Bio metry Enabled ( isEnabled : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġuser Repository . set Bio metry Enabled ( isEnabled ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġis Bio metry Enabled (): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġuser Repository . is Bio metry Enabled () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġis Bio metry Available (): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġuser Repository . is Bio metry Available () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġsave AccountName ( account Name : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġuser Repository . save AccountName ( account Name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsuspend Ġfun Ġget AccountName (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġuser Repository . get AccountName () ĊĠĠĠ Ġ} Ċ } Ċ