package Ġcom . say zen . camp fire sdk . screens . f andom s . rub r ics Ċ Ċ import Ġcom . d zen . camp fire . api . API _ TRANSL ATE Ċ import Ġcom . d zen . camp fire . api . models . f andom s . Rub ric Ċ import Ġcom . d zen . camp fire . api . models . publications . Publication Ċ import Ġcom . d zen . camp fire . api . requests . post . R Post GetAll By Rub ric Ċ import Ġcom . d zen . camp fire . api . requests . rub r ics . RR ub ric Get Ċ import Ġcom . say zen . camp fire sdk . R Ċ import Ġcom . say zen . camp fire sdk . controllers . Controller Rub r ics Ċ import Ġcom . say zen . camp fire sdk . controllers . api Ċ import Ġcom . say zen . camp fire sdk . controllers . t Ċ import Ġcom . say zen . camp fire sdk . models . cards . Card Publication Ċ import Ġcom . say zen . camp fire sdk . models . events . rub r ics . Event Rub ric Change Name Ċ import Ġcom . say zen . camp fire sdk . models . events . rub r ics . Event Rub ric Change Owner Ċ import Ġcom . say zen . camp fire sdk . models . events . rub r ics . Event Rub ric Remove Ċ import Ġcom . say zen . camp fire sdk . support . Api Requests Support er Ċ import Ġcom . sup . dev . android . libs . screens . navigator . Navigation Action Ċ import Ġcom . sup . dev . android . libs . screens . navigator . Navigator Ċ import Ġcom . sup . dev . android . tools . Tools Resources Ċ import Ġcom . sup . dev . android . views . screens . S Loading Recycler Ċ import Ġcom . sup . dev . java . libs . event Bus . EventBus Ċ Ċ class ĠSR ub ric Posts ( ĊĠĠĠĠĠĠĠ Ġval Ġrub ric : ĠRub ric Ċ ) Ġ: ĠS Loading Recycler < Card Publication , ĠPublic ation >() Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject { ĊĊĠĠĠĠĠĠĠ Ġfun Ġinstance ( rub ric Id : Long , Ġaction : ĠNavigation Action ){ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠApi Requests Support er . execute Inter stitial ( action , ĠR Rub ric Get ( rub ric Id )) Ġ{ Ġr Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠSR ub ric Posts ( r . rub ric ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġval Ġevent Bus Ġ= ĠEvent Bus ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe ( Event Rub ric Change Name :: class ){ Ġif ( rub ric . id Ġ== Ġit . rub ric Id ) Ġrub ric . name Ġ= Ġit . rub ric Name Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe ( Event Rub ric Change Owner :: class ){ Ġif ( rub ric . id Ġ== Ġit . rub ric Id ) Ġrub ric . owner Ġ= Ġit . owner Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe ( Event Rub ric Remove :: class ){ Ġif ( rub ric . id Ġ== Ġit . rub ric Id ) ĠNavigator . remove ( this ) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe ( Event Rub ric Change Name :: class ){ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġif ( rub ric . id Ġ== Ġit . rub ric Id ){ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġrub ric . name Ġ= Ġit . rub ric Name ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠsetTitle ( rub ric . name ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġdisable Navigation () ĊĠĠĠĠĠĠĠ Ġv Screen Root !!. set BackgroundColor ( Tools Resources . get BackgroundColor ( context )) ĊĠĠĠĠĠĠĠ ĠsetTitle ( rub ric . name ) ĊĠĠĠĠĠĠĠ Ġset Text Empty ( t ( API _ TRANSL ATE . rub ric _ posts _ empty )) ĊĠĠĠĠĠĠĠ Ġadd Toolbar Icon ( R . drawable . ic _ more _ vert _ white _ 2 4 dp ){ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠController Rub r ics . instance Menu ( rub ric ). as Sheet Show () ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġadapter . set Bottom Loader Ġ{ ĠonLoad , Ġcards Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR Post GetAll By Rub ric ( rub ric . id , Ġcards . size . to Long ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. onComplete Ġ{ Ġr Ġ-> ĠonLoad . invoke ( r . publications ) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. on Network Error Ġ{ ĠonLoad . invoke ( null ) Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. send ( api ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġclass Of Card () Ġ= ĠCard Publication :: class ĊĊĠĠĠ Ġoverride Ġfun Ġmap ( item : ĠPublic ation ) Ġ= ĠCard Publication . instance ( item , Ġv Recycler ) Ċ Ċ } Ċ