package Ġcom . web add ict ed . kotlin project . viewModel . fc m kit Ċ Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġcom . web add ict ed . kotlin project . api utils . ApiResponse Ċ import Ġcom . web add ict ed . kotlin project . model . bean . common . F cm Not if Bean Ċ import Ġcom . web add ict ed . kotlin project . model . bean . common . Not i Res po Ċ import Ġcom . web add ict ed . kotlin project . model . fc m kit . F cm Social Login Res po Bean Ċ import Ġcom . web add ict ed . kotlin project . model . repository . fc m kit . F cm Food Repository Ċ import Ġcom . web add ict ed . kotlin project . viewModel . base . Base ViewModel Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠDeep ak ĠSh arma Ġon Ġ 0 1 / 0 7 / 1 9 . Ċ Ġ*/ Ċ class ĠF cm Food ViewModel ( private Ġval Ġproject Repository : ĠF cm Food Repository ) Ġ: ĠBase ViewModel () Ġ{ ĊĠĠĠ Ġfun Ġget F cm Food UserInfo (): ĠF cm Social Login Res po Bean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġproject Repository . getF cm Food UserInfo () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġset F cm Food UserInfo ( userInfo : ĠF cm Social Login Res po Bean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġproject Repository . set F cm Food UserInfo ( userInfo ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġvar Ġf cm Not if Ġ= ĠMutable LiveData < ApiResponse < Not i Res po >>() ĊĊĠĠĠ Ġfun Ġget F cm Not i (): ĠMutable LiveData < ApiResponse < Not i Res po >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġf cm Not if ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġnot i Api ( fc m Not if Bean : ĠF cm Not if Bean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġproject Repository . getF cm Not i ( fc m Not if Bean , Ġf cm Not if ) ĊĠĠĠ Ġ} Ċ }