package Ġcom s . d yp at il . notice board . view model Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . lifecycle . Android ViewModel Ċ import Ġcom s . d yp at il . notice board . App Ċ import Ġcom s . d yp at il . notice board . util . File Util Ċ import Ġjava . io . File Ċ Ċ class ĠHome VM ( application : ĠApplication ) Ġ: ĠAndroid ViewModel ( application ) Ġ{ ĊĊĠĠĠ Ġvar Ġcurrent Fragment Tag : ĠString ? Ġ= Ġnull ĊĊĠĠĠ Ġfun Ġget Profile Pic (): ĠFile Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġuser Type Ġ= ĠApp . preference . sp User Type ĊĠĠĠĠĠĠĠ Ġval Ġpic Name Ġ= ĠApp . preference . sp UserProfile Pic Name ĊĠĠĠĠĠĠĠ Ġreturn ĠFile Util . get Profile Pic File ( user Type , Ġpic Name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget UserName (): ĠString Ġ= ĠApp . preference . sp UserName ĊĊĠĠĠ Ġfun ĠgetUser Department (): ĠString Ġ= ĠApp . preference . sp User Department Ċ Ċ } Ċ