package Ġcom . ip us oft . local call . module Ċ Ċ import Ġcom . ip us oft . context . bean . Sys Recording Ċ import Ġcom . ip us oft . http . manager . Ret rofit Manager Ċ import Ġcom . ip us oft . local call . Upload File Ob serve Ċ import Ġcom . ip us oft . local call . api . Local Call API Service Ċ import Ġcom . ip us oft . local call . bean . Upload Response Ċ import Ġcom . ip us oft . local call . upload . Multipart Builder Ċ import Ġio . reactivex . rx java 3 . android . schedul ers . Android Schedulers Ċ import Ġio . reactivex . rx java 3 . schedul ers . Schedulers Ċ Ċ /** Ċ Ġ* Ġauthor Ġ: ĠG WF an Ċ Ġ* Ġtime ĠĠ Ġ: Ġ 4 / 9 / 2 1 Ġ 1 1 : 2 5 ĠAM Ċ Ġ* Ġdesc ĠĠ Ġ: Ċ Ġ*/ Ċ Ċ class ĠUpload Service Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġval ĠTAG Ġ= Ġ" Public Http Service " ĊĊĠĠĠĠĠĠĠ Ġ/** ĊĠĠĠĠĠĠĠĠ Ġ* Ġæĸĩä»¶ ä¸Ĭä¼ł ĊĠĠĠĠĠĠĠĠ Ġ*/ ĊĠĠĠĠĠĠĠ Ġfun Ġupload Recording File ( sys Recording : ĠSys Recording , Ġupload File Ob serve : ĠUpload File Ob serve < Upload Response >) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġupload Recording Files ( listOf ( sys Recording ), Ġupload File Ob serve ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġ/** ĊĠĠĠĠĠĠĠĠ Ġ* Ġ å¤ļ æĸĩä»¶ ä¸Ĭä¼ł ĊĠĠĠĠĠĠĠĠ Ġ*/ ĊĠĠĠĠĠĠĠ Ġprivate Ġfun Ġupload Recording Files ( sys Recording : ĠList < Sys Recording >, Ġupload File Ob serve : ĠUpload File Ob serve < Upload Response >) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠRet rofit Manager . getInstance (). ret rofit . create ( Local Call API Service :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. upload File ( Multipart Builder . files 2 Multipart Body ( sys Recording , Ġupload File Ob serve )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe On ( Schedulers . io ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( Android Schedulers . main Thread ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe ( upload File Ob serve ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }