package Ġcom . chr is j mobile apps . most common 3 page sequence app . network Ċ Ċ import Ġcom . chr is j mobile apps . most common 3 page sequence app . main . model . Apache Log Parser Ċ import Ġcom . chr is j mobile apps . most common 3 page sequence app . main . model . Page List Parser Ċ import Ġcom . chr is j mobile apps . most common 3 page sequence app . main . model . Page Sequence Frequency Ċ import Ġio . reactivex . Single Ċ Ċ class ĠNetwork Repository ( private Ġval Ġthree Page Sequence Api : ĠThree Page Sequence Api ) Ġ{ ĊĊĠĠĠ Ġfun Ġget Apache Log (): ĠSingle < List < Page Sequence Frequency >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġthree Page Sequence Api . get Apache Log () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. map Ġ{ Ġresponse Body Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġpage List Ġ= ĠApache Log Parser . getPage List ( response Body . string ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġpage Sequence Frequency List Ġ= ĠPage List Parser . getPage Sequence Frequency List ( page List ) ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġpage Sequence Frequency List ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }