package Ġcom . github . ker ub istan . ker ub . utils . ip mi ĊĊ Ċ enum Ġclass ĠApp Command ( val Ġcode : ĠInt ) Ġ{ Ċ ĉ GetDevice Id ( 0 x 0 1 ), Ċ ĉ Col d Reset ( 0 x 0 2 ), Ċ ĉ W arm Reset ( 0 x 0 3 ), Ċ ĉ Get Self Test Results ( 0 x 0 4 ), Ċ ĉ Man ufact uring Test On ( 0 x 0 5 ), Ċ ĉ Set Ac pi Power State ( 0 x 0 6 ), Ċ ĉ Get Ac pi Power State ( 0 x 0 7 ), Ċ ĉ GetDevice Guid ( 0 x 0 8 ), Ċ ĉ // ... Ċ ĉ Get Session Challenge ( 0 x 3 9 ), Ċ ĉ Activate Session ( 0 x 3 A ), Ċ ĉ Set Session Privilege Level ( 0 x 3 B ), Ċ ĉ Close Session ( 0 x 3 C ), Ċ ĉ Get Session Info ( 0 x 3 D ), Ċ ĉ Get Auth Code ( 0 x 3 F ); ĊĊ ĉ comp anion Ġobject Ġ{ Ċĉ ĉ private Ġval Ġcommands By Code Ġ= Ġvalues (). map Ġ{ Ġit . code Ġto Ġit Ġ}. toMap () Ċĉ ĉ fun ĠgetBy Code ( code : ĠInt ): ĠApp Command Ġ= Ċĉĉĉ ĉ commands By Code [ code ] Ġ?: Ġthrow ĠIllegalArgumentException (" Code Ġnot Ġknown : Ġ$ code ") Ċ ĉ } Ċ }