package Ġcom . say ant an ban er j ee . transaction management app . presenter . di Ċ Ċ import Ġcom . say ant an ban er j ee . transaction management app . domain . UseCase .* Ċ import Ġcom . say ant an ban er j ee . transaction management app . domain . repository . App Repository Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . components . Singleton Component Ċ import Ġjavax . inject . Singleton Ċ Ċ // ĠUse Case Module Ġcreates Ġthe Ġdependency Ġinjection Ġfor Ġthe Ġdifferent ĠUse ĠC ases Ġof Ġthe Ġproject Ġdefined Ġin Ġthe ĠDomain Ġsection . Ċ @ Module Ċ @ Install In ( Singleton Component :: class ) Ċ class ĠUse Case Module Ġ{ ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Save Record UseCase ( app Repository : ĠApp Repository ): ĠSave Record UseCase Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠSave Record UseCase ( app Repository ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Accepted Sum Sent UseCase ( app Repository : ĠApp Repository ): ĠGet Accepted Sum Sent UseCase Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠGet Accepted Sum Sent UseCase ( app Repository ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Accepted Sum Sent By AP art icular Contact UseCase ( app Repository : ĠApp Repository ): ĠGet Accepted Sum Sent By AP art icular Contact UseCase Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠGet Accepted Sum Sent By AP art icular Contact UseCase ( app Repository ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Accepted Sum Received By AP art icular Contact UseCase ( app Repository : ĠApp Repository ): ĠGet Accepted Sum Received By AP art icular Contact UseCase Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠGet Accepted Sum Received By AP art icular Contact UseCase ( app Repository ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Sum Received UseCase ( app Repository : ĠApp Repository ): ĠGet Sum Received UseCase Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠGet Sum Received UseCase ( app Repository ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides GetAll Records UseCase ( app Repository : ĠApp Repository ): ĠGetAll Records UseCase Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠGetAll Records UseCase ( app Repository ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Save State To Firebase UseCase ( app Repository : ĠApp Repository ): ĠSave State To Firebase UseCase Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠSave State To Firebase UseCase ( app Repository ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides GetState From Firebase UseCase ( app Repository : ĠApp Repository ): ĠGet State From Firebase UseCase Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠGet State From Firebase UseCase ( app Repository ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides GetAll Records Of AP art icular Contact UseCase ( app Repository : ĠApp Repository ): ĠGetAll Records Of AP art icular Contact UseCase Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠGetAll Records Of AP art icular Contact UseCase ( app Repository ) ĊĠĠĠ Ġ} Ċ Ċ } Ċ