package Ġcom . br aff dev . st eg an of y . ui . reveal . success Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġcom . br aff dev . st eg an of y . R Ċ import Ġcom . br aff dev . st eg an of y . lib . domain . Type Ċ import Ġcom . br aff dev . st eg an of y . ui . reveal . Re veal ViewModel Ċ import Ġorg . apache . commons . io . FileUtils Ċ Ċ class ĠRe veal Success ViewModel ( val Ġapplication Context : ĠContext , Ġval Ġparent ViewModel : ĠRe veal ViewModel ) Ġ{ ĊĊĠĠĠ Ġval Ġlive Data Statistics Bytes Ġ= ĠMutable LiveData < String >() ĊĠĠĠ Ġval Ġlive Data Statistics Re veal Time Ġ= ĠMutable LiveData < String >() ĊĠĠĠ Ġval Ġlive Data Statistics Image Processing Ġ= ĠMutable LiveData < String >() ĊĠĠĠ Ġval Ġlive Data Statistics Total Time Ġ= ĠMutable LiveData < String >() ĊĊĠĠĠ Ġfun Ġinitialize () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdata Size Ġ= ĠFileUtils . byte Count To Display Size ( parent ViewModel . data Size InBytes ) ĊĠĠĠĠĠĠĠ Ġval Ġstatistics Ġ= Ġparent ViewModel . statistics ĊĊĠĠĠĠĠĠĠ Ġlive Data Statistics Bytes . value Ġ= Ġapplication Context . getString ( R . string . reveal _ statistics _ bytes , Ġdata Size ) ĊĠĠĠĠĠĠĠ Ġlive Data Statistics Re veal Time . value Ġ= Ġapplication Context . getString ( R . string . ms , Ġstatistics ?. operation In Ms ) ĊĠĠĠĠĠĠĠ Ġlive Data Statistics Image Processing . value Ġ= Ġapplication Context . getString ( R . string . ms , Ġstatistics ?. image Processing In Ms ) ĊĠĠĠĠĠĠĠ Ġlive Data Statistics Total Time . value Ġ= Ġapplication Context . getString ( R . string . ms , Ġstatistics ?. total TimeIn Ms ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Payload Type (): ĠType Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġparent ViewModel . output Payload !!. getType () ĊĠĠĠ Ġ} Ċ } Ċ