package Ġcom . su ho tr ub . con versations . ui . activities . group info Ċ Ċ import Ġcom . are l lo mobile . mvp . Inject ViewState Ċ import Ġcom . are l lo mobile . mvp . M vp Presenter Ċ import Ġcom . su ho tr ub . con versations . base . di . scopes . Activity Scope Ċ import Ġcom . su ho tr ub . con versations . inter actor . groups . Groups Interactor Ċ import Ġcom . su ho tr ub . con versations . model . group . Group Dto Ċ import Ġcom . su ho tr ub . con versations . ui . util . subscribe Ċ import Ġjavax . inject . Inject Ċ Ċ @ Inject ViewState Ċ @ Activity Scope Ċ class ĠGroup Info Presenter Ġ@ Inject Ġconstructor ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġgroup Dto : ĠGroup Dto , ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġgroups Interactor : ĠGroups Interactor Ċ ) Ġ: ĠM vp Presenter < Group Info View >() Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĊĠĠĠĠĠĠĠ Ġview State . render Group ( group Dto ) ĊĠĠĠĠĠĠĠ Ġreload Users () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġreload Users () Ġ{ ĊĠĠĠĠĠĠĠ Ġsubscribe ( groups Interactor . getGroup Participants ( group Dto . group Guid , Ġ 0 )) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġview State . render Users ( it . users ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġadd User ( user Guid : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsubscribe ( groups Interactor . invite To Group ( group Dto . group Guid , Ġuser Guid )) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreload Users () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġleave Group (){ ĊĠĠĠĠĠĠĠ Ġsubscribe ( groups Interactor . leave Group ( group Dto . group Guid )){ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġview State . finish Activity () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ Ċ }