package Ġorg . rd toolkit . support . model . session Ċ Ċ const Ġval ĠFLAG _ PREFIX _ KEY Ġ= Ġ" FLAG _" Ċ Ċ const Ġval ĠFLAG _ SESSION _ NO _ EAR LY _ READ S Ġ= Ġ" FLAG _ NO _ EAR LY _ READ S " Ċ const Ġval ĠFLAG _ SESSION _ NO _ EXPI RATION _ OVERRIDE Ġ= Ġ" FLAG _ NO _ OVERRIDE " Ċ const Ġval ĠFLAG _ SESSION _ TEST ING _ QA Ġ= Ġ" FLAG _ TEST ING _ QA " Ċ Ċ const Ġval ĠFLAG _ CALL ING _ PACKAGE Ġ= Ġ" FLAG _ ANDROID _ CALL ING _ PACKAGE " Ċ Ċ const Ġval ĠFLAG _ VALUE _ SET Ġ= Ġ" TRUE " Ċ const Ġval ĠFLAG _ VALUE _ UN SET Ġ= Ġ" FALSE " Ċ Ċ const Ġval ĠFLAG _ SESSION _ CLOUD WORK S _ CAPTURE _ TRACE = Ġ" FLAG _ CLOUD WORK S _ CAPTURE _ TRACE " Ċ const Ġval ĠFLAG _ SESSION _ CLOUD WORK S _ FULL _ IMAGE _ SUB MISSION = Ġ" FLAG _ SESSION _ CLOUD WORK S _ FULL _ IMAGE _ SUB MISSION " Ċ Ċ const Ġval ĠFLAG _ CAPTURE _ ALLOW _ IN DE TERMIN ATE Ġ= Ġ" FLAG _ CAPTURE _ ALLOW _ IN DE TERMIN ATE " Ċ Ċ const Ġval ĠFLAG _ SECOND ARY _ CAPTURE Ġ= Ġ" FLAG _ CAPTURE _ SECOND ARY _ INPUT " Ċ const Ġval ĠFLAG _ SECOND ARY _ PARAMS Ġ= Ġ" FLAG _ CAPTURE _ SECOND ARY _ PARAMS " Ċ Ċ const Ġval ĠFLAG _ CAPTURE _ PARAMS Ġ= Ġ" FLAG _ CAPTURE _ PARAMS " Ċ const Ġval ĠFLAG _ CAPTURE _ REQUIRE MENTS Ġ= Ġ" FLAG _ CAPTURE _ REQUIRE MENTS " Ċ Ċ fun ĠTest Session . Configuration . is Cloud works Active () Ġ: ĠBoolean Ġ{ ĊĠĠĠ Ġreturn Ġthis . cloud works Dns Ġ!= Ġnull Ċ } Ċ Ċ fun ĠTest Session . Configuration . is Trace Enabled () Ġ: ĠBoolean Ġ{ ĊĠĠĠ Ġreturn Ġthis . is Cloud works Active () Ġ&& Ġis Flag Set ( FLAG _ SESSION _ CLOUD WORK S _ CAPTURE _ TRACE , Ġtrue ) Ċ } Ċ Ċ fun ĠTest Session . Configuration . is Comp reh ensive Image Submission Enabled () Ġ: ĠBoolean Ġ{ ĊĠĠĠ Ġreturn Ġthis . is Cloud works Active () Ġ&& Ġis Flag Set ( FLAG _ SESSION _ CLOUD WORK S _ FULL _ IMAGE _ SUB MISSION ) Ċ } Ċ Ċ fun ĠTest Session . Configuration . is Flag Set ( flag Ġ: ĠString , Ġdefault Ġ: ĠBoolean Ġ= Ġfalse ) Ġ: ĠBoolean Ġ{ ĊĠĠĠ Ġreturn Ġif Ġ( default ) Ġ Ġ{ ĊĠĠĠĠĠĠĠ ĠFLAG _ VALUE _ UN SET Ġ!= Ġthis . flags [ flag ] ĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠ ĠFLAG _ VALUE _ SET Ġ== Ġthis . flags [ flag ] ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun ĠTest Session . Configuration . was Secondary Capture Requested () Ġ: ĠBoolean Ġ{ ĊĠĠĠ Ġreturn Ġis Flag Set ( FLAG _ SECOND ARY _ CAPTURE ) Ċ } Ċ Ċ fun ĠTest Session . Configuration . get Secondary Capture Params () Ġ: ĠMap < String , ĠString > Ġ{ ĊĠĠĠ Ġval Ġmap Ġ= ĠHashMap < String , ĠString >() ĊĠĠĠ Ġthis . flags [ FLAG _ SECOND ARY _ PARAMS ]?. let Ġ{ Ġmap [ FLAG _ CAPTURE _ PARAMS ] Ġ= Ġit } ĊĠĠĠ Ġreturn Ġmap Ċ } ĊĊ Ċ fun ĠTest Session . Configuration . set Capture Flag ( flag : ĠString ) Ġ{ ĊĠĠĠ Ġthis . flags Ġ= Ġflags . to Mutable Map (). apply Ġ{ Ġthis [ FLAG _ CAPTURE _ PARAMS ] Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ( this [ FLAG _ CAPTURE _ PARAMS ]?. split (" Ġ") Ġ?: ĠlistOf ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. to Mutable Set (). apply Ġ{ Ġadd ( flag ) Ġ}. join ToString (" Ġ") Ġ} Ċ } Ċ Ċ fun ĠTest Session . Configuration . remove Capture Flag ( flag : ĠString ) Ġ{ ĊĠĠĠ Ġthis . flags Ġ= Ġflags . to Mutable Map (). apply Ġ{ Ġthis [ FLAG _ CAPTURE _ PARAMS ] Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ( this [ FLAG _ CAPTURE _ PARAMS ]?. split (" Ġ") Ġ?: ĠlistOf ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. to Mutable Set (). apply Ġ{ Ġremove ( flag ) Ġ}. join ToString (" Ġ" )} Ċ } Ċ Ċ fun ĠTest Session . Configuration . check Capture Flag ( flag : ĠString ) Ġ: ĠBoolean Ġ{ ĊĠĠĠ Ġreturn Ġ( this . flags [ FLAG _ CAPTURE _ PARAMS ]?. split (" Ġ") Ġ?: ĠlistOf ()). contains ( flag ) Ċ } Ċ