package Ġkr . ac . sn u . hc il . om n itr ack . core . triggers . meas ures Ċ Ċ import Ġandroid . content . Context Ċ import Ġcom . google . gson . JsonObject Ċ import Ġio . reactivex . Observable Ċ import Ġkr . ac . sn u . hc il . om n itr ack . R Ċ import Ġkr . ac . sn u . hc il . om n itr ack . core . connection . OT Item Metadata Measure Factory Ċ import Ġkr . ac . sn u . hc il . om n itr ack . core . database . models . OT Field DAO Ċ import Ġkr . ac . sn u . hc il . om n itr ack . core . fields . OT Field Manager Ċ import Ġkr . ac . sn u . hc il . om n itr ack . core . serialization . TypeString Serialization Helper Ċ import Ġkr . ac . sn u . hc il . om n itr ack . core . triggers . OT Data D riven Trigger Manager Ċ Ċ class ĠO T Data D riven Condition Met Value Measure Factory ( context : ĠContext ) Ġ: ĠO T Item Metadata Measure Factory ( context , Ġ" data D riven Condition Met Value ") Ġ{ ĊĊĊĠĠĠ Ġprivate Ġval Ġlogic Impl Ġ= ĠO T Data D riven Trigger Metadata Measure Logic Impl ( context ) ĊĊĠĠĠ Ġoverride Ġfun Ġget AttributeType (): ĠInt Ġ= ĠO T Field Manager . TYPE _ NUMBER ĊĊĠĠĠ Ġoverride Ġval Ġdata TypeName : ĠString Ġ= ĠType String Serialization Helper . TYP ENAME _ BIG DECIMAL ĊĊĠĠĠ Ġoverride Ġfun Ġis Available To Request Value ( field : ĠO T Field DAO , Ġinvalid Messages : ĠMutable List < CharSequence >? ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġlogic Impl . is Available To Request Value ( field , Ġinvalid Messages ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġextract Value From Metadata ( metadata : ĠJsonObject ): ĠAny ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġmetadata . get ( OT Data D riven Trigger Manager . METADATA _ KEY _ VALUE )?. as BigDecimal ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġmake Measure ( arguments : ĠJsonObject ?): ĠO T Measure Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠO T MetaData Measure ( this , Ġarguments ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Category Name (): ĠString Ġ= Ġcontext . getString ( R . string . msg _ trigger _ data _ measure _ category ) ĊĊĠĠĠ Ġoverride Ġval Ġname ResourceId : ĠInt Ġ= ĠR . string . msg _ trigger _ data _ measure _ value _ name ĊĠĠĠ Ġoverride Ġval Ġdesc ResourceId : ĠInt Ġ= ĠR . string . msg _ trigger _ data _ measure _ value _ description ĊĊĠĠĠ Ġoverride Ġfun Ġmake Availability Check Observable ( field : ĠO T Field DAO ): ĠObservable < Pair < Boolean , ĠList < CharSequence >? >> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġlogic Impl . make Availability Check Observable ( field ) ĊĠĠĠ Ġ} Ċ } Ċ