/* Ċ Ġ* ĠCreated Ġby ĠForce ĠPor qu illo Ġon Ġ 6 / 5 / 2 0 Ġ 3 : 2 8 ĠPM Ċ Ġ* ĠFE U ĠInstitute Ġof ĠTechnology Ċ Ġ* ĠCopyright Ġ( c ) Ġ 2 0 2 0 . Ġ ĠAll Ġrights Ġreserved . Ċ Ġ* ĠLast Ġmodified Ġ 7 / 1 2 / 2 0 Ġ 2 : 2 2 ĠAM Ċ Ġ*/ Ċ package Ġcom . force . codes . project . app . app . constants Ċ Ċ import Ġcom . force . codes . project . app . Base Application Ċ import Ġcom . force . codes . project . app . R Ċ Ċ object ĠApi Constant Endpoints { ĊĠ Ġconst Ġval ĠNE WS _ DATA Ġ= Ġ" https :// news api . org / v 2 / everything ? q = CO VID , ĠPhil ipp ines & " Ġ+ ĊĠĠĠĠĠ Ġ" from = 2 0 2 0 & sortBy = published At & apiKey = 0 bf 6 fe 7 3 8 d 0 f 4 2 7 9 a 5 c 1 1 6 9 f 1 1 fe 4 c 3 f & pageSize = 1 0 0 & page = 1 " ĊĊĠ Ġconst Ġval ĠT WIT TER _ BE AR ER _ TOKEN Ġ= Ġ" AAAAAAAAAAAAAAAA AAAAAA 5 SD w E AAAA An F 1 q % 2 B mh NS A ys x K Den HX 4 De 2 H 7 " Ġ+ ĊĠĠĠĠĠ Ġ" x 0 % 3 Dy U Jn Ev O 0 o et 4 3 pc 2 m WN GT l NF y F 6 k XO e pr Kw F 2 wx 5 RR pix V 3 W Bu " ĊĊĠ Ġprivate Ġconst Ġval ĠT WIT TER _ USER _ ENDPOINT Ġ= Ġ" https :// api . twitter . com / 1 . 1 / statuses /" Ġ+ ĊĠĠĠĠĠ Ġ" user _ timeline . json ? screen _ name =" ĊĊĠ Ġconst Ġval ĠTOT AL _ BY _ DATE Ġ= Ġ" https :// covid - api . com / api / reports / total ? date =" ĊĊĠ Ġconst Ġval ĠURL _ PATH Ġ= Ġ" https :// cor ona . l ma o . ninja / v 2 /" ĊĊĠ Ġconst Ġval ĠLOCAL _ URL Ġ= Ġ" https :// cor onav irus - ph - api . herokuapp . com / do h - data - drop " ĊĊĠ Ġconst Ġval ĠGLOBAL _ CASE Ġ= Ġ" https :// covid 1 9 . math dro . id / api / confirmed " ĊĊĠ Ġconst Ġval ĠPH _ FROM _ DAY _ ONE Ġ= Ġ" https :// covid 1 9 - api - phil ipp ines . herokuapp . com / api /" ĊĊĠ Ġprivate Ġconst Ġval ĠT WE ET _ MODE _ EXT END Ġ= Ġ"& count = 2 5 & tweet _ mode = extended " ĊĊĠ Ġprivate Ġconst Ġval ĠAPI _ CO VID 1 9 Ġ= Ġ" https :// api . covid 1 9 api . com / total / day one / country /" ĊĊĠ Ġprivate Ġconst Ġval ĠAPI _ KEY Ġ= Ġ"" ĊĊĠ Ġ@ Jvm Static Ġval Ġtwitter Url Ġ= ĠarrayOf ( ĊĠĠĠĠĠ Ġ" DO H GO V PH ", ĊĠĠĠĠĠ Ġ" rap pler dot com ", ĊĠĠĠĠĠ Ġ" AB SC BN News " ĊĠ Ġ) ĊĊĠ Ġ// Ġcustom Ġendpoint ĊĠ Ġ@ Jvm Static Ġfun Ġget Twitter Endpoint ( screen Name : ĠString ): ĠString Ġ{ ĊĠĠĠ Ġreturn ĠT WIT TER _ USER _ ENDPOINT Ġ+ Ġscreen Name ĊĠ Ġ} ĊĊĠ Ġ@ Jvm Static Ġfun ĠgetUser Timeline ( timeline Index : ĠInt ): ĠString Ġ{ ĊĠĠĠ Ġreturn Ġtwitter Url [ timeline Index ]. plus ( TW E ET _ MODE _ EXT END ) ĊĠ Ġ} ĊĊĠ Ġ@ Jvm Static Ġfun Ġget BaseUrl Path ( endpoint : ĠString ): ĠString Ġ{ ĊĠĠĠ Ġreturn ĠURL _ PATH . plus ( endpoint ) ĊĠ Ġ} ĊĊĠ Ġ@ Jvm Static Ġfun Ġget Country Data From Day One ( country : ĠString ?): ĠString Ġ{ ĊĠĠĠ Ġreturn ĠAPI _ CO VID 1 9 . plus ( country ) ĊĠ Ġ} Ċ }