package Ġcom . ttp sc . dynamics 3 6 5 field Service . core . di . api Ċ Ċ import Ġandroid . content . SharedPreferences Ċ import Ġcom . microsoft . identity . client . IS ingle Account Public Client Application Ċ import Ġcom . ttp sc . dynamics 3 6 5 field Service . App Configuration Ċ import Ġcom . ttp sc . dynamics 3 6 5 field Service . b ll . ab straction . operations .* Ċ import Ġcom . ttp sc . dynamics 3 6 5 field Service . b ll . operations . dynamics .* Ċ import Ġcom . ttp sc . dynamics 3 6 5 field Service . core . ab straction . Authorization Manager Ċ import Ġcom . ttp sc . dynamics 3 6 5 field Service . core . ab straction . Language Manager Ċ import Ġcom . ttp sc . dynamics 3 6 5 field Service . core . managers . Dynamics Authorization Manager Ċ import Ġcom . ttp sc . dynamics 3 6 5 field Service . dal . repository . Dynamics Api Repository Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġjavax . inject . Named Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Module Ċ class ĠDynamics Api Module Ġ{ ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Named (" BASE _ ENDPOINT ") ĊĠĠĠ Ġfun Ġget Base Endpoint (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠApp Configuration . endpoint Ġ+ ĠApp Configuration . ENDPOINT _ SUFFIX ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Authorization Manager ( ĊĠĠĠĠĠĠĠ Ġshared Preferences : ĠSharedPreferences , ĊĠĠĠĠĠĠĠ Ġpublic Client Application : ĠIS ingle Account Public Client Application ĊĠĠĠ Ġ): ĠAuthorization Manager Ġ= ĊĠĠĠĠĠĠĠ ĠDynamics Authorization Manager ( shared Preferences , Ġpublic Client Application ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide ApiService ( ret rofit : ĠRet rofit ) Ġ= ĊĠĠĠĠĠĠĠ ĠDynamics Api Repository ( ret rofit ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Get UserInfo Operation ( ĊĠĠĠĠĠĠĠ Ġrepository : ĠDynamics Api Repository ĊĠĠĠ Ġ): ĠGet UserInfo Operation Ġ= ĠDynamics Get UserInfo ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Get Procedure Details Operation ( ĊĠĠĠĠĠĠĠ Ġrepository : ĠDynamics Api Repository ĊĠĠĠ Ġ): ĠGet Book able Resource Booking Details Operation Ġ= ĊĠĠĠĠĠĠĠ ĠDynamics Get Book able Resource Booking Details ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Get Pro cedures Operation ( ĊĠĠĠĠĠĠĠ Ġrepository : ĠDynamics Api Repository , ĊĠĠĠĠĠĠĠ Ġlanguage Manager : ĠLanguage Manager ĊĠĠĠ Ġ): ĠGet Book able Resources Book ings Operation Ġ= ĊĠĠĠĠĠĠĠ ĠDynamics Get Book able Resource Book ings Operation ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Get Book able Resource Book ings Operation Count ( ĊĠĠĠĠĠĠĠ Ġrepository : ĠDynamics Api Repository ĊĠĠĠ Ġ): ĠGet Book able Resource Book ings Count Operation Ġ= ĊĠĠĠĠĠĠĠ ĠDynamics Get Book able Resource Book ings Count ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Get Alerts Operation ( ĊĠĠĠĠĠĠĠ Ġrepository : ĠDynamics Api Repository ĊĠĠĠ Ġ): ĠGet Alerts Operation Ġ= ĠDynamics Get Alerts ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Get Booking Statuses Operation ( ĊĠĠĠĠĠĠĠ Ġrepository : ĠDynamics Api Repository ĊĠĠĠ Ġ): ĠGet Booking Statuses Operation Ġ= ĠDynamics Get Booking Statuses Operation ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Work Orders Operation ( repository : ĠDynamics Api Repository ): ĠGet Work Orders Operation Ġ= ĊĠĠĠĠĠĠĠ ĠDynamics Get Work Orders Operation ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Get Book able Resources Operation ( ĊĠĠĠĠĠĠĠ Ġrepository : ĠDynamics Api Repository , ĊĠĠĠĠĠĠĠ Ġauthorization Manager : ĠAuthorization Manager ĊĠĠĠ Ġ): ĠGet Book able Resources Operation Ġ= ĊĠĠĠĠĠĠĠ ĠDynamics Get Book able Resource ( repository , Ġauthorization Manager ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Change Book able Resource Booking Status ( ĊĠĠĠĠĠĠĠ Ġrepository : ĠDynamics Api Repository ĊĠĠĠ Ġ): ĠChange Book able Resource Booking Status Operation Ġ= ĊĠĠĠĠĠĠĠ ĠDynamics Change Book able Resource Booking Status ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Get Notes Operation ( ĊĠĠĠĠĠĠĠ Ġrepository : ĠDynamics Api Repository ĊĠĠĠ Ġ): ĠGet Notes Operation Ġ= ĠDynamics Get Notes ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Create Note Operation ( ĊĠĠĠĠĠĠĠ Ġrepository : ĠDynamics Api Repository ĊĠĠĠ Ġ): ĠCreate Note Operation Ġ= ĠDynamics Create Note Operation ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Download File Operation ( repository : ĠDynamics Api Repository ): ĠDownload File Operation Ġ= ĊĠĠĠĠĠĠĠ ĠDynamics Download File ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Get Form Operation ( repository : ĠDynamics Api Repository ): ĠGet Form Operation Ġ= ĊĠĠĠĠĠĠĠ ĠDynamics Get Form ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Get Raw Work Orders Operation ( repository : ĠDynamics Api Repository ): ĠGet Raw Work Orders Operation Ġ= ĊĠĠĠĠĠĠĠ ĠDynamics Get Raw Work Order ( repository ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Get Categories Operation ( repository : ĠDynamics Api Repository ): ĠGet Categories Operation Ġ{ ĊĠĠĠĠĠĠĠ Ġthrow ĠNotImplementedError () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Get Guide Details Operation ( repository : ĠDynamics Api Repository ): ĠGet Procedure Operation Ġ{ ĊĠĠĠĠĠĠĠ Ġthrow ĠNotImplementedError () ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Create Procedure Operation ( repository : ĠDynamics Api Repository ): ĠCreate Procedure Operation Ġ{ ĊĠĠĠĠĠĠĠ Ġthrow ĠNotImplementedError () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Step Procedure Operation ( repository : ĠDynamics Api Repository ): ĠCreate Step Operation Ġ{ ĊĠĠĠĠĠĠĠ Ġthrow ĠNotImplementedError () ĊĠĠĠ Ġ} Ċ }