package Ġcom . fs ck . k 9 m _ m . ui . settings . import Ċ Ċ import Ġandroid . content . Intent Ċ Ċ data Ġclass ĠPassword Prompt Result ( ĊĠĠĠĠĠĠĠ Ġval Ġaccount Uuid : ĠString , ĊĠĠĠĠĠĠĠ Ġval Ġincoming Server Password : ĠString ?, ĊĠĠĠĠĠĠĠ Ġval Ġoutgoing Server Password : ĠString ? Ċ ) Ġ{ ĊĠĠĠ Ġfun Ġas Intent () Ġ= ĠIntent (). apply Ġ{ ĊĠĠĠĠĠĠĠ Ġput Extra ( EXTRA _ ACCOUNT _ UUID , Ġaccount Uuid ) ĊĠĠĠĠĠĠĠ Ġput Extra ( EXTRA _ IN COM ING _ SERVER _ PASSWORD , Ġincoming Server Password ) ĊĠĠĠĠĠĠĠ Ġput Extra ( EXTRA _ OUT GO ING _ SERVER _ PASSWORD , Ġoutgoing Server Password ) ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval ĠEX TRA _ ACCOUNT _ UUID Ġ= Ġ" account Uuid " ĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval ĠEX TRA _ IN COM ING _ SERVER _ PASSWORD Ġ= Ġ" incoming Server Password " ĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval ĠEX TRA _ OUT GO ING _ SERVER _ PASSWORD Ġ= Ġ" outgoing Server Password " ĊĊĠĠĠĠĠĠĠ Ġfun Ġfrom Intent ( intent : ĠIntent ): ĠPassword Prompt Result Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġaccount Uuid Ġ= Ġintent . getString Extra ( EXTRA _ ACCOUNT _ UUID ) Ġ?: Ġerror (" Missing Ġaccount ĠUUID ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġincoming Server Password Ġ= Ġintent . getString Extra ( EXTRA _ IN COM ING _ SERVER _ PASSWORD ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġoutgoing Server Password Ġ= Ġintent . getString Extra ( EXTRA _ OUT GO ING _ SERVER _ PASSWORD ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠPassword Prompt Result ( account Uuid , Ġincoming Server Password , Ġoutgoing Server Password ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ