package Ġcom . github . m ikes af on ov . jira . telegram . service . jira Ċ Ċ import Ġcom . atlassian . jira . rest . client . api . J ira RestClient Ċ import Ġcom . atlassian . jira . rest . client . internal . async . As ynchronous J ira RestClient Factory Ċ import Ġcom . github . m ikes af on ov . jira . telegram . config . J ira OAuth Properties Ċ import Ġcom . github . m ikes af on ov . jira . telegram . config . conditional . Conditional On J ira OAuth Ċ import Ġcom . github . m ikes af on ov . jira . telegram . service . jira . oauth . J ira OAuth Authentication Handler Ċ import Ġorg . springframework . stereotype . Service Ċ import Ġjava . net . URI Ċ Ċ /** Ċ Ġ* ĠFactory Ġfor Ġcreating ĠJira ĠRest ĠAPI Ġclient Ġfor Ġspecific Ġtele gram Ġuser Ċ Ġ* Ġ@ author ĠM ike ĠS af on ov Ċ Ġ*/ Ċ @ Service Ċ @ Conditional On J ira OAuth Ċ class ĠJira RestClient Factory ( ĊĠĠĠ Ġprivate Ġval Ġauth Service : ĠJira Auth Service , Ġprivate Ġval Ġj ira Properties : ĠJira OAuth Properties , ĊĠĠĠ Ġprivate Ġval Ġasynchronous J ira RestClient Factory : ĠAs ynchronous J ira RestClient Factory Ċ ) Ġ{ ĊĊĠĠĠ Ġfun Ġcreate RestClient ( telegram Id : ĠLong ): ĠJira RestClient Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġo Auth Parameters Ġ= Ġauth Service . get OAuth Parameters ( telegram Id ) ĊĠĠĠĠĠĠĠ Ġreturn Ġasynchronous J ira RestClient Factory . create With Authentication Handler ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠURI ( jira Properties . baseUrl ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠJira OAuth Authentication Handler ( o Auth Parameters ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ }