package Ġcom . sin ch . rtc . v vc . reference . app . utils . extensions Ċ Ċ import Ġcom . sin ch . android . rtc . calling . Call Ċ import Ġcom . sin ch . android . rtc . calling . Call Client Ċ import Ġcom . sin ch . android . rtc . calling . Call Details Ċ import Ġcom . sin ch . rtc . v vc . reference . app . domain . calls . Call Dao Ċ import Ġcom . sin ch . rtc . v vc . reference . app . domain . calls . Call Item Ċ import Ġcom . sin ch . rtc . v vc . reference . app . domain . calls . Call Type Ċ Ċ fun ĠCall Item . create Sin ch Call ( call Client : ĠCall Client ): ĠCall Ġ= Ġwhen Ġ( type ) Ġ{ ĊĠĠĠ ĠCall Type . App To Phone Ġ-> Ġcall Client . call PhoneNumber ( destination ) ĊĠĠĠ ĠCall Type . App To App Audio Ġ-> Ġcall Client . call User ( destination ) ĊĠĠĠ ĠCall Type . App To App Video Ġ-> Ġcall Client . call User Video ( destination ) ĊĠĠĠ ĠCall Type . App ToS ip Ġ-> Ġcall Client . call S ip ( destination ) Ċ } Ċ Ċ val ĠCall Details . expected Type : ĠCall Type ĊĠĠĠ Ġget () Ġ= Ġif Ġ( this . is Video Offer ed ) ĊĠĠĠĠĠĠĠ ĠCall Type . App To App Video Ġelse ĠCall Type . App To App Audio Ċ Ċ fun ĠCall Item . update Based On Sin ch Call ( call : ĠCall ?, Ġdao : ĠCall Dao ) Ġ{ ĊĠĠĠ Ġif Ġ( call Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠ Ġdao . update ( this . with Updated Call Data ( call )) ĊĠĠĠ Ġ} Ċ }