package Ġorg . opp ia . app . profile Ċ Ċ import Ġandroidx . databinding . Observable Field Ċ import Ġorg . opp ia . app . activity . Activity Scope Ċ import Ġorg . opp ia . app . view model . Observable ViewModel Ċ import Ġjavax . inject . Inject Ċ Ċ /** ĠThe ĠViewModel Ġfor Ġ[ Add Profile Activity ]. Ġ*/ Ċ @ Activity Scope Ċ class ĠAdd Profile ViewModel Ġ@ Inject Ġconstructor () Ġ: ĠObservable ViewModel () Ġ{ ĊĠ Ġval Ġvalid Pin Ġ= ĠObservable Field ( false ) ĊĠ Ġval Ġpin ErrorMsg Ġ= ĠObservable Field ("") ĊĠ Ġval Ġconfirm Pin ErrorMsg Ġ= ĠObservable Field ("") ĊĠ Ġval Ġname ErrorMsg Ġ= ĠObservable Field ("") ĊĠ Ġval Ġcreate Pin Ġ= ĠObservable Field ( false ) ĊĊĠ Ġfun Ġclear All Error Messages () Ġ{ ĊĠĠĠ Ġpin ErrorMsg . set ("") ĊĠĠĠ Ġconfirm Pin ErrorMsg . set ("") ĊĠĠĠ Ġname ErrorMsg . set ("") ĊĠ Ġ} Ċ } Ċ