InteractiveControl_server_g.h 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892
  1. #ifndef __INTERACTIVECONTROL_SERVER_G_H
  2. #define __INTERACTIVECONTROL_SERVER_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "InteractiveControl_def_g.h"
  6. namespace InteractiveControl {
  7. class UIService_ServerSessionBase : public CServerSessionBase
  8. {
  9. public:
  10. UIService_ServerSessionBase()
  11. {
  12. /// override by user
  13. }
  14. virtual ~UIService_ServerSessionBase()
  15. {
  16. /// override by user
  17. }
  18. virtual bool IsExclusive() { return false; }
  19. virtual bool IsSessionOverlap() { return true; }
  20. virtual ErrorCodeEnum GetMessageAttr(DWORD dwMessageID, DWORD dwSignature, bool &bOverlap)
  21. {
  22. ErrorCodeEnum Error = Error_Succeed;
  23. switch (dwMessageID) {
  24. case UIService_Method_SetUIState:
  25. if (dwSignature == UIService_MethodSignature_SetUIState) {
  26. bOverlap = true;
  27. } else {
  28. Error = Error_MethodSignatureFailed;
  29. }
  30. break;
  31. case UIService_Method_SendAgentText:
  32. if (dwSignature == UIService_MethodSignature_SendAgentText) {
  33. bOverlap = true;
  34. } else {
  35. Error = Error_MethodSignatureFailed;
  36. }
  37. break;
  38. case UIService_Method_SetMenuTree:
  39. if (dwSignature == UIService_MethodSignature_SetMenuTree) {
  40. bOverlap = true;
  41. } else {
  42. Error = Error_MethodSignatureFailed;
  43. }
  44. break;
  45. case UIService_Method_SetMenuPath:
  46. if (dwSignature == UIService_MethodSignature_SetMenuPath) {
  47. bOverlap = true;
  48. } else {
  49. Error = Error_MethodSignatureFailed;
  50. }
  51. break;
  52. case UIService_Method_SendFrontSyncData:
  53. if (dwSignature == UIService_MethodSignature_SendFrontSyncData) {
  54. bOverlap = true;
  55. } else {
  56. Error = Error_MethodSignatureFailed;
  57. }
  58. break;
  59. case UIService_Method_StartRecordVideo:
  60. if (dwSignature == UIService_MethodSignature_StartRecordVideo) {
  61. bOverlap = true;
  62. } else {
  63. Error = Error_MethodSignatureFailed;
  64. }
  65. break;
  66. case UIService_Method_StopRecordVideo:
  67. if (dwSignature == UIService_MethodSignature_StopRecordVideo) {
  68. bOverlap = true;
  69. } else {
  70. Error = Error_MethodSignatureFailed;
  71. }
  72. break;
  73. case UIService_Method_ShowVideo:
  74. if (dwSignature == UIService_MethodSignature_ShowVideo) {
  75. bOverlap = true;
  76. } else {
  77. Error = Error_MethodSignatureFailed;
  78. }
  79. break;
  80. case UIService_Method_SaveVideo:
  81. if (dwSignature == UIService_MethodSignature_SaveVideo) {
  82. bOverlap = true;
  83. } else {
  84. Error = Error_MethodSignatureFailed;
  85. }
  86. break;
  87. case UIService_Method_DeleteVideo:
  88. if (dwSignature == UIService_MethodSignature_DeleteVideo) {
  89. bOverlap = true;
  90. } else {
  91. Error = Error_MethodSignatureFailed;
  92. }
  93. break;
  94. case UIService_Method_StartPlayVideo:
  95. if (dwSignature == UIService_MethodSignature_StartPlayVideo) {
  96. bOverlap = true;
  97. } else {
  98. Error = Error_MethodSignatureFailed;
  99. }
  100. break;
  101. case UIService_Method_StartPlayAudio:
  102. if (dwSignature == UIService_MethodSignature_StartPlayAudio) {
  103. bOverlap = true;
  104. } else {
  105. Error = Error_MethodSignatureFailed;
  106. }
  107. break;
  108. case UIService_Method_StartPlayImage:
  109. if (dwSignature == UIService_MethodSignature_StartPlayImage) {
  110. bOverlap = true;
  111. } else {
  112. Error = Error_MethodSignatureFailed;
  113. }
  114. break;
  115. case UIService_Method_StopPlayVideo:
  116. if (dwSignature == UIService_MethodSignature_StopPlayVideo) {
  117. bOverlap = true;
  118. } else {
  119. Error = Error_MethodSignatureFailed;
  120. }
  121. break;
  122. case UIService_Method_StopPlayAudio:
  123. if (dwSignature == UIService_MethodSignature_StopPlayAudio) {
  124. bOverlap = true;
  125. } else {
  126. Error = Error_MethodSignatureFailed;
  127. }
  128. break;
  129. case UIService_Method_StopPlayImage:
  130. if (dwSignature == UIService_MethodSignature_StopPlayImage) {
  131. bOverlap = true;
  132. } else {
  133. Error = Error_MethodSignatureFailed;
  134. }
  135. break;
  136. case UIService_Method_StartPhotograph:
  137. if (dwSignature == UIService_MethodSignature_StartPhotograph) {
  138. bOverlap = true;
  139. } else {
  140. Error = Error_MethodSignatureFailed;
  141. }
  142. break;
  143. case UIService_Method_StopPhotograph:
  144. if (dwSignature == UIService_MethodSignature_StopPhotograph) {
  145. bOverlap = true;
  146. } else {
  147. Error = Error_MethodSignatureFailed;
  148. }
  149. break;
  150. case UIService_Method_SendOperateState:
  151. if (dwSignature == UIService_MethodSignature_SendOperateState) {
  152. bOverlap = true;
  153. } else {
  154. Error = Error_MethodSignatureFailed;
  155. }
  156. break;
  157. case UIService_Method_CheckContinuRecord:
  158. if (dwSignature == UIService_MethodSignature_CheckContinuRecord) {
  159. bOverlap = true;
  160. } else {
  161. Error = Error_MethodSignatureFailed;
  162. }
  163. break;
  164. case UIService_Method_StartContinuRecord:
  165. if (dwSignature == UIService_MethodSignature_StartContinuRecord) {
  166. bOverlap = true;
  167. } else {
  168. Error = Error_MethodSignatureFailed;
  169. }
  170. break;
  171. case UIService_Method_StopContinuRecord:
  172. if (dwSignature == UIService_MethodSignature_StopContinuRecord) {
  173. bOverlap = true;
  174. } else {
  175. Error = Error_MethodSignatureFailed;
  176. }
  177. break;
  178. case UIService_Method_StartEchoContinuRecord:
  179. if (dwSignature == UIService_MethodSignature_StartEchoContinuRecord) {
  180. bOverlap = true;
  181. } else {
  182. Error = Error_MethodSignatureFailed;
  183. }
  184. break;
  185. case UIService_Method_StopEchoContinuRecord:
  186. if (dwSignature == UIService_MethodSignature_StopEchoContinuRecord) {
  187. bOverlap = true;
  188. } else {
  189. Error = Error_MethodSignatureFailed;
  190. }
  191. break;
  192. case UIService_Method_HideOnlineVideo:
  193. if (dwSignature == UIService_MethodSignature_HideOnlineVideo) {
  194. bOverlap = true;
  195. } else {
  196. Error = Error_MethodSignatureFailed;
  197. }
  198. break;
  199. case UIService_Method_ShowOnlineVideo:
  200. if (dwSignature == UIService_MethodSignature_ShowOnlineVideo) {
  201. bOverlap = true;
  202. } else {
  203. Error = Error_MethodSignatureFailed;
  204. }
  205. break;
  206. case UIService_Method_AnswerPacket:
  207. if (dwSignature == UIService_MethodSignature_AnswerPacket) {
  208. bOverlap = true;
  209. } else {
  210. Error = Error_MethodSignatureFailed;
  211. }
  212. break;
  213. case UIService_Method_GetLocalVideoVolume:
  214. if (dwSignature == UIService_MethodSignature_GetLocalVideoVolume) {
  215. bOverlap = true;
  216. } else {
  217. Error = Error_MethodSignatureFailed;
  218. }
  219. break;
  220. case UIService_Method_SetLocalVideoVolume:
  221. if (dwSignature == UIService_MethodSignature_SetLocalVideoVolume) {
  222. bOverlap = true;
  223. } else {
  224. Error = Error_MethodSignatureFailed;
  225. }
  226. break;
  227. case UIService_Method_SendBusinessDesktopCmd:
  228. if (dwSignature == UIService_MethodSignature_SendBusinessDesktopCmd) {
  229. bOverlap = true;
  230. } else {
  231. Error = Error_MethodSignatureFailed;
  232. }
  233. break;
  234. case UIService_Method_HideLocalVideo:
  235. if (dwSignature == UIService_MethodSignature_HideLocalVideo) {
  236. bOverlap = true;
  237. } else {
  238. Error = Error_MethodSignatureFailed;
  239. }
  240. break;
  241. case UIService_Method_ShowLocalVideo:
  242. if (dwSignature == UIService_MethodSignature_ShowLocalVideo) {
  243. bOverlap = true;
  244. } else {
  245. Error = Error_MethodSignatureFailed;
  246. }
  247. break;
  248. case UIService_Method_HidePersonArea:
  249. if (dwSignature == UIService_MethodSignature_HidePersonArea) {
  250. bOverlap = true;
  251. } else {
  252. Error = Error_MethodSignatureFailed;
  253. }
  254. break;
  255. case UIService_Method_ShowPersonArea:
  256. if (dwSignature == UIService_MethodSignature_ShowPersonArea) {
  257. bOverlap = true;
  258. } else {
  259. Error = Error_MethodSignatureFailed;
  260. }
  261. break;
  262. case UIService_Method_VideoAppendWaterMark:
  263. if (dwSignature == UIService_MethodSignature_VideoAppendWaterMark) {
  264. bOverlap = true;
  265. } else {
  266. Error = Error_MethodSignatureFailed;
  267. }
  268. break;
  269. case UIService_Method_GetLocalAudioVolume:
  270. if (dwSignature == UIService_MethodSignature_GetLocalAudioVolume) {
  271. bOverlap = true;
  272. } else {
  273. Error = Error_MethodSignatureFailed;
  274. }
  275. break;
  276. case UIService_Method_SetLocalAudioVolume:
  277. if (dwSignature == UIService_MethodSignature_SetLocalAudioVolume) {
  278. bOverlap = true;
  279. } else {
  280. Error = Error_MethodSignatureFailed;
  281. }
  282. break;
  283. case UIService_Method_StartRemoteRecord:
  284. if (dwSignature == UIService_MethodSignature_StartRemoteRecord) {
  285. bOverlap = true;
  286. } else {
  287. Error = Error_MethodSignatureFailed;
  288. }
  289. break;
  290. case UIService_Method_StopRemoteRecord:
  291. if (dwSignature == UIService_MethodSignature_StopRemoteRecord) {
  292. bOverlap = true;
  293. } else {
  294. Error = Error_MethodSignatureFailed;
  295. }
  296. break;
  297. case UIService_Method_StartSalesRecord:
  298. if (dwSignature == UIService_MethodSignature_StartSalesRecord) {
  299. bOverlap = true;
  300. } else {
  301. Error = Error_MethodSignatureFailed;
  302. }
  303. break;
  304. case UIService_Method_StartRecordPreview:
  305. if (dwSignature == UIService_MethodSignature_StartRecordPreview) {
  306. bOverlap = true;
  307. } else {
  308. Error = Error_MethodSignatureFailed;
  309. }
  310. break;
  311. case UIService_Method_StartSalesVideoRecord:
  312. if (dwSignature == UIService_MethodSignature_StartSalesVideoRecord) {
  313. bOverlap = true;
  314. } else {
  315. Error = Error_MethodSignatureFailed;
  316. }
  317. break;
  318. case UIService_Method_AjustVideoPreviewSize:
  319. if (dwSignature == UIService_MethodSignature_AjustVideoPreviewSize) {
  320. bOverlap = true;
  321. } else {
  322. Error = Error_MethodSignatureFailed;
  323. }
  324. break;
  325. case UIService_Method_StopShowVideo:
  326. if (dwSignature == UIService_MethodSignature_StopShowVideo) {
  327. bOverlap = true;
  328. } else {
  329. Error = Error_MethodSignatureFailed;
  330. }
  331. break;
  332. case UIService_Method_StartPlaySalesRecord:
  333. if (dwSignature == UIService_MethodSignature_StartPlaySalesRecord) {
  334. bOverlap = true;
  335. } else {
  336. Error = Error_MethodSignatureFailed;
  337. }
  338. break;
  339. case UIService_Method_SendH5SyncData:
  340. if (dwSignature == UIService_MethodSignature_SendH5SyncData) {
  341. bOverlap = true;
  342. } else {
  343. Error = Error_MethodSignatureFailed;
  344. }
  345. break;
  346. case UIService_Method_GetHandfreeOutVolume:
  347. if (dwSignature == UIService_MethodSignature_GetHandfreeOutVolume) {
  348. bOverlap = true;
  349. } else {
  350. Error = Error_MethodSignatureFailed;
  351. }
  352. break;
  353. case UIService_Method_SetHandfreeOutVolume:
  354. if (dwSignature == UIService_MethodSignature_SetHandfreeOutVolume) {
  355. bOverlap = true;
  356. } else {
  357. Error = Error_MethodSignatureFailed;
  358. }
  359. break;
  360. case UIService_Method_GetPickupOutVolume:
  361. if (dwSignature == UIService_MethodSignature_GetPickupOutVolume) {
  362. bOverlap = true;
  363. } else {
  364. Error = Error_MethodSignatureFailed;
  365. }
  366. break;
  367. case UIService_Method_SetPickupOutVolume:
  368. if (dwSignature == UIService_MethodSignature_SetPickupOutVolume) {
  369. bOverlap = true;
  370. } else {
  371. Error = Error_MethodSignatureFailed;
  372. }
  373. break;
  374. case UIService_Method_StartPlayNotice:
  375. if (dwSignature == UIService_MethodSignature_StartPlayNotice) {
  376. bOverlap = true;
  377. } else {
  378. Error = Error_MethodSignatureFailed;
  379. }
  380. break;
  381. case UIService_Method_StopPlayNotice:
  382. if (dwSignature == UIService_MethodSignature_StopPlayNotice) {
  383. bOverlap = true;
  384. } else {
  385. Error = Error_MethodSignatureFailed;
  386. }
  387. break;
  388. case UIService_Method_GetRecordMode:
  389. if (dwSignature == UIService_MethodSignature_GetRecordMode) {
  390. bOverlap = true;
  391. } else {
  392. Error = Error_MethodSignatureFailed;
  393. }
  394. break;
  395. case UIService_Method_StartTransactionRecord:
  396. if (dwSignature == UIService_MethodSignature_StartTransactionRecord) {
  397. bOverlap = true;
  398. } else {
  399. Error = Error_MethodSignatureFailed;
  400. }
  401. break;
  402. case UIService_Method_StopTransactionRecord:
  403. if (dwSignature == UIService_MethodSignature_StopTransactionRecord) {
  404. bOverlap = true;
  405. } else {
  406. Error = Error_MethodSignatureFailed;
  407. }
  408. break;
  409. case UIService_Method_GetCallState:
  410. if (dwSignature == UIService_MethodSignature_GetCallState) {
  411. bOverlap = true;
  412. } else {
  413. Error = Error_MethodSignatureFailed;
  414. }
  415. break;
  416. case UIService_Method_HangupCall:
  417. if (dwSignature == UIService_MethodSignature_HangupCall) {
  418. bOverlap = true;
  419. } else {
  420. Error = Error_MethodSignatureFailed;
  421. }
  422. break;
  423. case UIService_Method_GetTransactionRecordState:
  424. if (dwSignature == UIService_MethodSignature_GetTransactionRecordState) {
  425. bOverlap = true;
  426. } else {
  427. Error = Error_MethodSignatureFailed;
  428. }
  429. break;
  430. case UIService_Method_GetHandfreeInVolume:
  431. if (dwSignature == UIService_MethodSignature_GetHandfreeInVolume) {
  432. bOverlap = true;
  433. } else {
  434. Error = Error_MethodSignatureFailed;
  435. }
  436. break;
  437. case UIService_Method_SetHandfreeInVolume:
  438. if (dwSignature == UIService_MethodSignature_SetHandfreeInVolume) {
  439. bOverlap = true;
  440. } else {
  441. Error = Error_MethodSignatureFailed;
  442. }
  443. break;
  444. case UIService_Method_GetPickupInVolume:
  445. if (dwSignature == UIService_MethodSignature_GetPickupInVolume) {
  446. bOverlap = true;
  447. } else {
  448. Error = Error_MethodSignatureFailed;
  449. }
  450. break;
  451. case UIService_Method_SetPickupInVolume:
  452. if (dwSignature == UIService_MethodSignature_SetPickupInVolume) {
  453. bOverlap = true;
  454. } else {
  455. Error = Error_MethodSignatureFailed;
  456. }
  457. break;
  458. case UIService_Method_GetAudioInDevices:
  459. if (dwSignature == UIService_MethodSignature_GetAudioInDevices) {
  460. bOverlap = true;
  461. } else {
  462. Error = Error_MethodSignatureFailed;
  463. }
  464. break;
  465. case UIService_Method_GetAudioOutDevices:
  466. if (dwSignature == UIService_MethodSignature_GetAudioOutDevices) {
  467. bOverlap = true;
  468. } else {
  469. Error = Error_MethodSignatureFailed;
  470. }
  471. break;
  472. case UIService_Method_GetCameraInfo:
  473. if (dwSignature == UIService_MethodSignature_GetCameraInfo) {
  474. bOverlap = true;
  475. } else {
  476. Error = Error_MethodSignatureFailed;
  477. }
  478. break;
  479. case UIService_Method_GetMediaDeviceInfo:
  480. if (dwSignature == UIService_MethodSignature_GetMediaDeviceInfo) {
  481. bOverlap = true;
  482. } else {
  483. Error = Error_MethodSignatureFailed;
  484. }
  485. break;
  486. case UIService_Method_GetPickUpStatus:
  487. if (dwSignature == UIService_MethodSignature_GetPickUpStatus) {
  488. bOverlap = true;
  489. } else {
  490. Error = Error_MethodSignatureFailed;
  491. }
  492. break;
  493. default:
  494. Error = Error_MethodNotFound;
  495. break;
  496. }
  497. return Error;
  498. }
  499. int CheckMessageSignature(DWORD dwMessageID, DWORD dwSignature)
  500. {
  501. ErrorCodeEnum Error = Error_Succeed;
  502. switch (dwMessageID) {
  503. case UIService_Method_SetUIState:
  504. if (dwSignature != UIService_MethodSignature_SetUIState) {
  505. Error = Error_MethodSignatureFailed;
  506. }
  507. break;
  508. case UIService_Method_SendAgentText:
  509. if (dwSignature != UIService_MethodSignature_SendAgentText) {
  510. Error = Error_MethodSignatureFailed;
  511. }
  512. break;
  513. case UIService_Method_SetMenuTree:
  514. if (dwSignature != UIService_MethodSignature_SetMenuTree) {
  515. Error = Error_MethodSignatureFailed;
  516. }
  517. break;
  518. case UIService_Method_SetMenuPath:
  519. if (dwSignature != UIService_MethodSignature_SetMenuPath) {
  520. Error = Error_MethodSignatureFailed;
  521. }
  522. break;
  523. case UIService_Method_SendFrontSyncData:
  524. if (dwSignature != UIService_MethodSignature_SendFrontSyncData) {
  525. Error = Error_MethodSignatureFailed;
  526. }
  527. break;
  528. case UIService_Method_StartRecordVideo:
  529. if (dwSignature != UIService_MethodSignature_StartRecordVideo) {
  530. Error = Error_MethodSignatureFailed;
  531. }
  532. break;
  533. case UIService_Method_StopRecordVideo:
  534. if (dwSignature != UIService_MethodSignature_StopRecordVideo) {
  535. Error = Error_MethodSignatureFailed;
  536. }
  537. break;
  538. case UIService_Method_ShowVideo:
  539. if (dwSignature != UIService_MethodSignature_ShowVideo) {
  540. Error = Error_MethodSignatureFailed;
  541. }
  542. break;
  543. case UIService_Method_SaveVideo:
  544. if (dwSignature != UIService_MethodSignature_SaveVideo) {
  545. Error = Error_MethodSignatureFailed;
  546. }
  547. break;
  548. case UIService_Method_DeleteVideo:
  549. if (dwSignature != UIService_MethodSignature_DeleteVideo) {
  550. Error = Error_MethodSignatureFailed;
  551. }
  552. break;
  553. case UIService_Method_StartPlayVideo:
  554. if (dwSignature != UIService_MethodSignature_StartPlayVideo) {
  555. Error = Error_MethodSignatureFailed;
  556. }
  557. break;
  558. case UIService_Method_StartPlayAudio:
  559. if (dwSignature != UIService_MethodSignature_StartPlayAudio) {
  560. Error = Error_MethodSignatureFailed;
  561. }
  562. break;
  563. case UIService_Method_StartPlayImage:
  564. if (dwSignature != UIService_MethodSignature_StartPlayImage) {
  565. Error = Error_MethodSignatureFailed;
  566. }
  567. break;
  568. case UIService_Method_StopPlayVideo:
  569. if (dwSignature != UIService_MethodSignature_StopPlayVideo) {
  570. Error = Error_MethodSignatureFailed;
  571. }
  572. break;
  573. case UIService_Method_StopPlayAudio:
  574. if (dwSignature != UIService_MethodSignature_StopPlayAudio) {
  575. Error = Error_MethodSignatureFailed;
  576. }
  577. break;
  578. case UIService_Method_StopPlayImage:
  579. if (dwSignature != UIService_MethodSignature_StopPlayImage) {
  580. Error = Error_MethodSignatureFailed;
  581. }
  582. break;
  583. case UIService_Method_StartPhotograph:
  584. if (dwSignature != UIService_MethodSignature_StartPhotograph) {
  585. Error = Error_MethodSignatureFailed;
  586. }
  587. break;
  588. case UIService_Method_StopPhotograph:
  589. if (dwSignature != UIService_MethodSignature_StopPhotograph) {
  590. Error = Error_MethodSignatureFailed;
  591. }
  592. break;
  593. case UIService_Method_SendOperateState:
  594. if (dwSignature != UIService_MethodSignature_SendOperateState) {
  595. Error = Error_MethodSignatureFailed;
  596. }
  597. break;
  598. case UIService_Method_CheckContinuRecord:
  599. if (dwSignature != UIService_MethodSignature_CheckContinuRecord) {
  600. Error = Error_MethodSignatureFailed;
  601. }
  602. break;
  603. case UIService_Method_StartContinuRecord:
  604. if (dwSignature != UIService_MethodSignature_StartContinuRecord) {
  605. Error = Error_MethodSignatureFailed;
  606. }
  607. break;
  608. case UIService_Method_StopContinuRecord:
  609. if (dwSignature != UIService_MethodSignature_StopContinuRecord) {
  610. Error = Error_MethodSignatureFailed;
  611. }
  612. break;
  613. case UIService_Method_StartEchoContinuRecord:
  614. if (dwSignature != UIService_MethodSignature_StartEchoContinuRecord) {
  615. Error = Error_MethodSignatureFailed;
  616. }
  617. break;
  618. case UIService_Method_StopEchoContinuRecord:
  619. if (dwSignature != UIService_MethodSignature_StopEchoContinuRecord) {
  620. Error = Error_MethodSignatureFailed;
  621. }
  622. break;
  623. case UIService_Method_HideOnlineVideo:
  624. if (dwSignature != UIService_MethodSignature_HideOnlineVideo) {
  625. Error = Error_MethodSignatureFailed;
  626. }
  627. break;
  628. case UIService_Method_ShowOnlineVideo:
  629. if (dwSignature != UIService_MethodSignature_ShowOnlineVideo) {
  630. Error = Error_MethodSignatureFailed;
  631. }
  632. break;
  633. case UIService_Method_AnswerPacket:
  634. if (dwSignature != UIService_MethodSignature_AnswerPacket) {
  635. Error = Error_MethodSignatureFailed;
  636. }
  637. break;
  638. case UIService_Method_GetLocalVideoVolume:
  639. if (dwSignature != UIService_MethodSignature_GetLocalVideoVolume) {
  640. Error = Error_MethodSignatureFailed;
  641. }
  642. break;
  643. case UIService_Method_SetLocalVideoVolume:
  644. if (dwSignature != UIService_MethodSignature_SetLocalVideoVolume) {
  645. Error = Error_MethodSignatureFailed;
  646. }
  647. break;
  648. case UIService_Method_SendBusinessDesktopCmd:
  649. if (dwSignature != UIService_MethodSignature_SendBusinessDesktopCmd) {
  650. Error = Error_MethodSignatureFailed;
  651. }
  652. break;
  653. case UIService_Method_HideLocalVideo:
  654. if (dwSignature != UIService_MethodSignature_HideLocalVideo) {
  655. Error = Error_MethodSignatureFailed;
  656. }
  657. break;
  658. case UIService_Method_ShowLocalVideo:
  659. if (dwSignature != UIService_MethodSignature_ShowLocalVideo) {
  660. Error = Error_MethodSignatureFailed;
  661. }
  662. break;
  663. case UIService_Method_HidePersonArea:
  664. if (dwSignature != UIService_MethodSignature_HidePersonArea) {
  665. Error = Error_MethodSignatureFailed;
  666. }
  667. break;
  668. case UIService_Method_ShowPersonArea:
  669. if (dwSignature != UIService_MethodSignature_ShowPersonArea) {
  670. Error = Error_MethodSignatureFailed;
  671. }
  672. break;
  673. case UIService_Method_VideoAppendWaterMark:
  674. if (dwSignature != UIService_MethodSignature_VideoAppendWaterMark) {
  675. Error = Error_MethodSignatureFailed;
  676. }
  677. break;
  678. case UIService_Method_GetLocalAudioVolume:
  679. if (dwSignature != UIService_MethodSignature_GetLocalAudioVolume) {
  680. Error = Error_MethodSignatureFailed;
  681. }
  682. break;
  683. case UIService_Method_SetLocalAudioVolume:
  684. if (dwSignature != UIService_MethodSignature_SetLocalAudioVolume) {
  685. Error = Error_MethodSignatureFailed;
  686. }
  687. break;
  688. case UIService_Method_StartRemoteRecord:
  689. if (dwSignature != UIService_MethodSignature_StartRemoteRecord) {
  690. Error = Error_MethodSignatureFailed;
  691. }
  692. break;
  693. case UIService_Method_StopRemoteRecord:
  694. if (dwSignature != UIService_MethodSignature_StopRemoteRecord) {
  695. Error = Error_MethodSignatureFailed;
  696. }
  697. break;
  698. case UIService_Method_StartSalesRecord:
  699. if (dwSignature != UIService_MethodSignature_StartSalesRecord) {
  700. Error = Error_MethodSignatureFailed;
  701. }
  702. break;
  703. case UIService_Method_StartRecordPreview:
  704. if (dwSignature != UIService_MethodSignature_StartRecordPreview) {
  705. Error = Error_MethodSignatureFailed;
  706. }
  707. break;
  708. case UIService_Method_StartSalesVideoRecord:
  709. if (dwSignature != UIService_MethodSignature_StartSalesVideoRecord) {
  710. Error = Error_MethodSignatureFailed;
  711. }
  712. break;
  713. case UIService_Method_AjustVideoPreviewSize:
  714. if (dwSignature != UIService_MethodSignature_AjustVideoPreviewSize) {
  715. Error = Error_MethodSignatureFailed;
  716. }
  717. break;
  718. case UIService_Method_StopShowVideo:
  719. if (dwSignature != UIService_MethodSignature_StopShowVideo) {
  720. Error = Error_MethodSignatureFailed;
  721. }
  722. break;
  723. case UIService_Method_StartPlaySalesRecord:
  724. if (dwSignature != UIService_MethodSignature_StartPlaySalesRecord) {
  725. Error = Error_MethodSignatureFailed;
  726. }
  727. break;
  728. case UIService_Method_SendH5SyncData:
  729. if (dwSignature != UIService_MethodSignature_SendH5SyncData) {
  730. Error = Error_MethodSignatureFailed;
  731. }
  732. break;
  733. case UIService_Method_GetHandfreeOutVolume:
  734. if (dwSignature != UIService_MethodSignature_GetHandfreeOutVolume) {
  735. Error = Error_MethodSignatureFailed;
  736. }
  737. break;
  738. case UIService_Method_SetHandfreeOutVolume:
  739. if (dwSignature != UIService_MethodSignature_SetHandfreeOutVolume) {
  740. Error = Error_MethodSignatureFailed;
  741. }
  742. break;
  743. case UIService_Method_GetPickupOutVolume:
  744. if (dwSignature != UIService_MethodSignature_GetPickupOutVolume) {
  745. Error = Error_MethodSignatureFailed;
  746. }
  747. break;
  748. case UIService_Method_SetPickupOutVolume:
  749. if (dwSignature != UIService_MethodSignature_SetPickupOutVolume) {
  750. Error = Error_MethodSignatureFailed;
  751. }
  752. break;
  753. case UIService_Method_StartPlayNotice:
  754. if (dwSignature != UIService_MethodSignature_StartPlayNotice) {
  755. Error = Error_MethodSignatureFailed;
  756. }
  757. break;
  758. case UIService_Method_StopPlayNotice:
  759. if (dwSignature != UIService_MethodSignature_StopPlayNotice) {
  760. Error = Error_MethodSignatureFailed;
  761. }
  762. break;
  763. case UIService_Method_GetRecordMode:
  764. if (dwSignature != UIService_MethodSignature_GetRecordMode) {
  765. Error = Error_MethodSignatureFailed;
  766. }
  767. break;
  768. case UIService_Method_StartTransactionRecord:
  769. if (dwSignature != UIService_MethodSignature_StartTransactionRecord) {
  770. Error = Error_MethodSignatureFailed;
  771. }
  772. break;
  773. case UIService_Method_StopTransactionRecord:
  774. if (dwSignature != UIService_MethodSignature_StopTransactionRecord) {
  775. Error = Error_MethodSignatureFailed;
  776. }
  777. break;
  778. case UIService_Method_GetCallState:
  779. if (dwSignature != UIService_MethodSignature_GetCallState) {
  780. Error = Error_MethodSignatureFailed;
  781. }
  782. break;
  783. case UIService_Method_HangupCall:
  784. if (dwSignature != UIService_MethodSignature_HangupCall) {
  785. Error = Error_MethodSignatureFailed;
  786. }
  787. break;
  788. case UIService_Method_GetTransactionRecordState:
  789. if (dwSignature != UIService_MethodSignature_GetTransactionRecordState) {
  790. Error = Error_MethodSignatureFailed;
  791. }
  792. break;
  793. case UIService_Method_GetHandfreeInVolume:
  794. if (dwSignature != UIService_MethodSignature_GetHandfreeInVolume) {
  795. Error = Error_MethodSignatureFailed;
  796. }
  797. break;
  798. case UIService_Method_SetHandfreeInVolume:
  799. if (dwSignature != UIService_MethodSignature_SetHandfreeInVolume) {
  800. Error = Error_MethodSignatureFailed;
  801. }
  802. break;
  803. case UIService_Method_GetPickupInVolume:
  804. if (dwSignature != UIService_MethodSignature_GetPickupInVolume) {
  805. Error = Error_MethodSignatureFailed;
  806. }
  807. break;
  808. case UIService_Method_SetPickupInVolume:
  809. if (dwSignature != UIService_MethodSignature_SetPickupInVolume) {
  810. Error = Error_MethodSignatureFailed;
  811. }
  812. break;
  813. case UIService_Method_GetAudioInDevices:
  814. if (dwSignature != UIService_MethodSignature_GetAudioInDevices) {
  815. Error = Error_MethodSignatureFailed;
  816. }
  817. break;
  818. case UIService_Method_GetAudioOutDevices:
  819. if (dwSignature != UIService_MethodSignature_GetAudioOutDevices) {
  820. Error = Error_MethodSignatureFailed;
  821. }
  822. break;
  823. case UIService_Method_GetCameraInfo:
  824. if (dwSignature != UIService_MethodSignature_GetCameraInfo) {
  825. Error = Error_MethodSignatureFailed;
  826. }
  827. break;
  828. case UIService_Method_GetMediaDeviceInfo:
  829. if (dwSignature != UIService_MethodSignature_GetMediaDeviceInfo) {
  830. Error = Error_MethodSignatureFailed;
  831. }
  832. break;
  833. case UIService_Method_GetPickUpStatus:
  834. if (dwSignature != UIService_MethodSignature_GetPickUpStatus) {
  835. Error = Error_MethodSignatureFailed;
  836. }
  837. break;
  838. default:
  839. Error = Error_MethodNotFound;
  840. break;
  841. }
  842. return Error;
  843. }
  844. virtual void Handle_SetUIState(SpOnewayCallContext<UIService_SetUIState_Info>::Pointer ctx)
  845. {
  846. /// override by user
  847. }
  848. virtual void Handle_SendAgentText(SpReqAnsContext<UIService_SendAgentText_Req, UIService_SendAgentText_Ans>::Pointer ctx)
  849. {
  850. /// override by user
  851. }
  852. virtual void Handle_SetMenuTree(SpOnewayCallContext<UIService_SetMenuTree_Info>::Pointer ctx)
  853. {
  854. /// override by user
  855. }
  856. virtual void Handle_SetMenuPath(SpOnewayCallContext<UIService_SetMenuPath_Info>::Pointer ctx)
  857. {
  858. /// override by user
  859. }
  860. virtual void Handle_SendFrontSyncData(SpOnewayCallContext<UIService_SendFrontSyncData_Info>::Pointer ctx)
  861. {
  862. /// override by user
  863. }
  864. virtual void Handle_StartRecordVideo(SpReqAnsContext<UIService_StartRecordVideo_Req, UIService_StartRecordVideo_Ans>::Pointer ctx)
  865. {
  866. /// override by user
  867. }
  868. virtual void Handle_StopRecordVideo(SpReqAnsContext<UIService_StopRecordVideo_Req, UIService_StopRecordVideo_Ans>::Pointer ctx)
  869. {
  870. /// override by user
  871. }
  872. virtual void Handle_ShowVideo(SpReqAnsContext<UIService_ShowVideo_Req, UIService_ShowVideo_Ans>::Pointer ctx)
  873. {
  874. /// override by user
  875. }
  876. virtual void Handle_SaveVideo(SpReqAnsContext<UIService_SaveVideo_Req, UIService_SaveVideo_Ans>::Pointer ctx)
  877. {
  878. /// override by user
  879. }
  880. virtual void Handle_DeleteVideo(SpReqAnsContext<UIService_DeleteVideo_Req, UIService_DeleteVideo_Ans>::Pointer ctx)
  881. {
  882. /// override by user
  883. }
  884. virtual void Handle_StartPlayVideo(SpReqAnsContext<UIService_StartPlayVideo_Req, UIService_StartPlayVideo_Ans>::Pointer ctx)
  885. {
  886. /// override by user
  887. }
  888. virtual void Handle_StartPlayAudio(SpReqAnsContext<UIService_StartPlayAudio_Req, UIService_StartPlayAudio_Ans>::Pointer ctx)
  889. {
  890. /// override by user
  891. }
  892. virtual void Handle_StartPlayImage(SpReqAnsContext<UIService_StartPlayImage_Req, UIService_StartPlayImage_Ans>::Pointer ctx)
  893. {
  894. /// override by user
  895. }
  896. virtual void Handle_StopPlayVideo(SpReqAnsContext<UIService_StopPlayVideo_Req, UIService_StopPlayVideo_Ans>::Pointer ctx)
  897. {
  898. /// override by user
  899. }
  900. virtual void Handle_StopPlayAudio(SpReqAnsContext<UIService_StopPlayAudio_Req, UIService_StopPlayAudio_Ans>::Pointer ctx)
  901. {
  902. /// override by user
  903. }
  904. virtual void Handle_StopPlayImage(SpReqAnsContext<UIService_StopPlayImage_Req, UIService_StopPlayImage_Ans>::Pointer ctx)
  905. {
  906. /// override by user
  907. }
  908. virtual void Handle_StartPhotograph(SpOnewayCallContext<UIService_StartPhotograph_Info>::Pointer ctx)
  909. {
  910. /// override by user
  911. }
  912. virtual void Handle_StopPhotograph(SpOnewayCallContext<UIService_StopPhotograph_Info>::Pointer ctx)
  913. {
  914. /// override by user
  915. }
  916. virtual void Handle_SendOperateState(SpOnewayCallContext<UIService_SendOperateState_Info>::Pointer ctx)
  917. {
  918. /// override by user
  919. }
  920. virtual void Handle_CheckContinuRecord(SpReqAnsContext<UIService_CheckContinuRecord_Req, UIService_CheckContinuRecord_Ans>::Pointer ctx)
  921. {
  922. /// override by user
  923. }
  924. virtual void Handle_StartContinuRecord(SpReqAnsContext<UIService_StartContinuRecord_Req, UIService_StartContinuRecord_Ans>::Pointer ctx)
  925. {
  926. /// override by user
  927. }
  928. virtual void Handle_StopContinuRecord(SpReqAnsContext<UIService_StopContinuRecord_Req, UIService_StopContinuRecord_Ans>::Pointer ctx)
  929. {
  930. /// override by user
  931. }
  932. virtual void Handle_StartEchoContinuRecord(SpReqAnsContext<UIService_StartEchoContinuRecord_Req, UIService_StartEchoContinuRecord_Ans>::Pointer ctx)
  933. {
  934. /// override by user
  935. }
  936. virtual void Handle_StopEchoContinuRecord(SpReqAnsContext<UIService_StopEchoContinuRecord_Req, UIService_StopEchoContinuRecord_Ans>::Pointer ctx)
  937. {
  938. /// override by user
  939. }
  940. virtual void Handle_HideOnlineVideo(SpOnewayCallContext<UIService_HideOnlineVideo_Info>::Pointer ctx)
  941. {
  942. /// override by user
  943. }
  944. virtual void Handle_ShowOnlineVideo(SpOnewayCallContext<UIService_ShowOnlineVideo_Info>::Pointer ctx)
  945. {
  946. /// override by user
  947. }
  948. virtual void Handle_AnswerPacket(SpReqAnsContext<UIService_AnswerPacket_Req, UIService_AnswerPacket_Ans>::Pointer ctx)
  949. {
  950. /// override by user
  951. }
  952. virtual void Handle_GetLocalVideoVolume(SpReqAnsContext<UIService_GetLocalVideoVolume_Req, UIService_GetLocalVideoVolume_Ans>::Pointer ctx)
  953. {
  954. /// override by user
  955. }
  956. virtual void Handle_SetLocalVideoVolume(SpReqAnsContext<UIService_SetLocalVideoVolume_Req, UIService_SetLocalVideoVolume_Ans>::Pointer ctx)
  957. {
  958. /// override by user
  959. }
  960. virtual void Handle_SendBusinessDesktopCmd(SpReqAnsContext<UIService_SendBusinessDesktopCmd_Req, UIService_SendBusinessDesktopCmd_Ans>::Pointer ctx)
  961. {
  962. /// override by user
  963. }
  964. virtual void Handle_HideLocalVideo(SpOnewayCallContext<UIService_HideLocalVideo_Info>::Pointer ctx)
  965. {
  966. /// override by user
  967. }
  968. virtual void Handle_ShowLocalVideo(SpOnewayCallContext<UIService_ShowLocalVideo_Info>::Pointer ctx)
  969. {
  970. /// override by user
  971. }
  972. virtual void Handle_HidePersonArea(SpOnewayCallContext<UIService_HidePersonArea_Info>::Pointer ctx)
  973. {
  974. /// override by user
  975. }
  976. virtual void Handle_ShowPersonArea(SpOnewayCallContext<UIService_ShowPersonArea_Info>::Pointer ctx)
  977. {
  978. /// override by user
  979. }
  980. virtual void Handle_VideoAppendWaterMark(SpReqAnsContext<UIService_VideoAppendWaterMark_Req, UIService_VideoAppendWaterMark_Ans>::Pointer ctx)
  981. {
  982. /// override by user
  983. }
  984. virtual void Handle_GetLocalAudioVolume(SpReqAnsContext<UIService_GetLocalAudioVolume_Req, UIService_GetLocalAudioVolume_Ans>::Pointer ctx)
  985. {
  986. /// override by user
  987. }
  988. virtual void Handle_SetLocalAudioVolume(SpReqAnsContext<UIService_SetLocalAudioVolume_Req, UIService_SetLocalAudioVolume_Ans>::Pointer ctx)
  989. {
  990. /// override by user
  991. }
  992. virtual void Handle_StartRemoteRecord(SpReqAnsContext<UIService_StartRemoteRecord_Req, UIService_StartRemoteRecord_Ans>::Pointer ctx)
  993. {
  994. /// override by user
  995. }
  996. virtual void Handle_StopRemoteRecord(SpReqAnsContext<UIService_StopRemoteRecord_Req, UIService_StopRemoteRecord_Ans>::Pointer ctx)
  997. {
  998. /// override by user
  999. }
  1000. virtual void Handle_StartSalesRecord(SpReqAnsContext<UIService_StartSalesRecord_Req, UIService_StartSalesRecord_Ans>::Pointer ctx)
  1001. {
  1002. /// override by user
  1003. }
  1004. virtual void Handle_StartRecordPreview(SpReqAnsContext<UIService_StartRecordPreview_Req, UIService_StartRecordPreview_Ans>::Pointer ctx)
  1005. {
  1006. /// override by user
  1007. }
  1008. virtual void Handle_StartSalesVideoRecord(SpReqAnsContext<UIService_StartSalesVideoRecord_Req, UIService_StartSalesVideoRecord_Ans>::Pointer ctx)
  1009. {
  1010. /// override by user
  1011. }
  1012. virtual void Handle_AjustVideoPreviewSize(SpReqAnsContext<UIService_AjustVideoPreviewSize_Req, UIService_AjustVideoPreviewSize_Ans>::Pointer ctx)
  1013. {
  1014. /// override by user
  1015. }
  1016. virtual void Handle_StopShowVideo(SpReqAnsContext<UIService_StopShowVideo_Req, UIService_StopShowVideo_Ans>::Pointer ctx)
  1017. {
  1018. /// override by user
  1019. }
  1020. virtual void Handle_StartPlaySalesRecord(SpReqAnsContext<UIService_StartPlaySalesRecord_Req, UIService_StartPlaySalesRecord_Ans>::Pointer ctx)
  1021. {
  1022. /// override by user
  1023. }
  1024. virtual void Handle_SendH5SyncData(SpOnewayCallContext<UIService_SendH5SyncData_Info>::Pointer ctx)
  1025. {
  1026. /// override by user
  1027. }
  1028. virtual void Handle_GetHandfreeOutVolume(SpReqAnsContext<UIService_GetHandfreeOutVolume_Req, UIService_GetHandfreeOutVolume_Ans>::Pointer ctx)
  1029. {
  1030. /// override by user
  1031. }
  1032. virtual void Handle_SetHandfreeOutVolume(SpReqAnsContext<UIService_SetHandfreeOutVolume_Req, UIService_SetHandfreeOutVolume_Ans>::Pointer ctx)
  1033. {
  1034. /// override by user
  1035. }
  1036. virtual void Handle_GetPickupOutVolume(SpReqAnsContext<UIService_GetPickupOutVolume_Req, UIService_GetPickupOutVolume_Ans>::Pointer ctx)
  1037. {
  1038. /// override by user
  1039. }
  1040. virtual void Handle_SetPickupOutVolume(SpReqAnsContext<UIService_SetPickupOutVolume_Req, UIService_SetPickupOutVolume_Ans>::Pointer ctx)
  1041. {
  1042. /// override by user
  1043. }
  1044. virtual void Handle_StartPlayNotice(SpReqAnsContext<UIService_StartPlayNotice_Req, UIService_StartPlayNotice_Ans>::Pointer ctx)
  1045. {
  1046. /// override by user
  1047. }
  1048. virtual void Handle_StopPlayNotice(SpReqAnsContext<UIService_StopPlayNotice_Req, UIService_StopPlayNotice_Ans>::Pointer ctx)
  1049. {
  1050. /// override by user
  1051. }
  1052. virtual void Handle_GetRecordMode(SpReqAnsContext<UIService_GetRecordMode_Req, UIService_GetRecordMode_Ans>::Pointer ctx)
  1053. {
  1054. /// override by user
  1055. }
  1056. virtual void Handle_StartTransactionRecord(SpReqAnsContext<UIService_StartTransactionRecord_Req, UIService_StartTransactionRecord_Ans>::Pointer ctx)
  1057. {
  1058. /// override by user
  1059. }
  1060. virtual void Handle_StopTransactionRecord(SpReqAnsContext<UIService_StopTransactionRecord_Req, UIService_StopTransactionRecord_Ans>::Pointer ctx)
  1061. {
  1062. /// override by user
  1063. }
  1064. virtual void Handle_GetCallState(SpReqAnsContext<UIService_GetCallState_Req, UIService_GetCallState_Ans>::Pointer ctx)
  1065. {
  1066. /// override by user
  1067. }
  1068. virtual void Handle_HangupCall(SpOnewayCallContext<UIService_HangupCall_Info>::Pointer ctx)
  1069. {
  1070. /// override by user
  1071. }
  1072. virtual void Handle_GetTransactionRecordState(SpReqAnsContext<UIService_GetTransactionRecordState_Req, UIService_GetTransactionRecordState_Ans>::Pointer ctx)
  1073. {
  1074. /// override by user
  1075. }
  1076. virtual void Handle_GetHandfreeInVolume(SpReqAnsContext<UIService_GetHandfreeInVolume_Req, UIService_GetHandfreeInVolume_Ans>::Pointer ctx)
  1077. {
  1078. /// override by user
  1079. }
  1080. virtual void Handle_SetHandfreeInVolume(SpReqAnsContext<UIService_SetHandfreeInVolume_Req, UIService_SetHandfreeInVolume_Ans>::Pointer ctx)
  1081. {
  1082. /// override by user
  1083. }
  1084. virtual void Handle_GetPickupInVolume(SpReqAnsContext<UIService_GetPickupInVolume_Req, UIService_GetPickupInVolume_Ans>::Pointer ctx)
  1085. {
  1086. /// override by user
  1087. }
  1088. virtual void Handle_SetPickupInVolume(SpReqAnsContext<UIService_SetPickupInVolume_Req, UIService_SetPickupInVolume_Ans>::Pointer ctx)
  1089. {
  1090. /// override by user
  1091. }
  1092. virtual void Handle_GetAudioInDevices(SpReqAnsContext<UIService_GetAudioInDevices_Req, UIService_GetAudioInDevices_Ans>::Pointer ctx)
  1093. {
  1094. /// override by user
  1095. }
  1096. virtual void Handle_GetAudioOutDevices(SpReqAnsContext<UIService_GetAudioOutDevices_Req, UIService_GetAudioOutDevices_Ans>::Pointer ctx)
  1097. {
  1098. /// override by user
  1099. }
  1100. virtual void Handle_GetCameraInfo(SpReqAnsContext<UIService_GetCameraInfo_Req, UIService_GetCameraInfo_Ans>::Pointer ctx)
  1101. {
  1102. /// override by user
  1103. }
  1104. virtual void Handle_GetMediaDeviceInfo(SpReqAnsContext<UIService_GetMediaDeviceInfo_Req, UIService_GetMediaDeviceInfo_Ans>::Pointer ctx)
  1105. {
  1106. /// override by user
  1107. }
  1108. virtual void Handle_GetPickUpStatus(SpReqAnsContext<UIService_GetPickUpStatus_Req, UIService_GetPickUpStatus_Ans>::Pointer ctx)
  1109. {
  1110. /// override by user
  1111. }
  1112. virtual void OnRequest(CSmartPointer<ITransactionContext> pTransactionContext)
  1113. {
  1114. CAutoBuffer Buf;
  1115. DWORD dwMessageID;
  1116. DWORD dwMessageSignature;
  1117. ErrorCodeEnum Error = pTransactionContext->GetReceiveBuffer(dwMessageID, dwMessageSignature, Buf);
  1118. if (Error == Error_Succeed) {
  1119. #ifdef DEBUG
  1120. assert(CheckMessageSignature(dwMessageID, dwMessageSignature) == Error_Succeed);
  1121. #else
  1122. if (CheckMessageSignature(dwMessageID, dwMessageSignature) != Error_Succeed) {
  1123. pTransactionContext->SendAnswer(Error_MethodSignatureFailed);
  1124. return;
  1125. }
  1126. #endif
  1127. switch (dwMessageID) {
  1128. case UIService_Method_SetUIState:
  1129. {
  1130. SpOnewayCallContext<UIService_SetUIState_Info>::Pointer ctx;
  1131. ctx.Attach(new SpOnewayCallContext<UIService_SetUIState_Info>());
  1132. SpBuffer2Object(Buf, ctx->Info);
  1133. pTransactionContext->GetLinkContext(ctx->link);
  1134. EntityResource::setLink(ctx->link);
  1135. Handle_SetUIState(ctx);
  1136. }
  1137. break;
  1138. case UIService_Method_SendAgentText:
  1139. {
  1140. SpReqAnsContext<UIService_SendAgentText_Req,UIService_SendAgentText_Ans>::Pointer ctx;
  1141. ctx.Attach(new SpReqAnsContext<UIService_SendAgentText_Req,UIService_SendAgentText_Ans>(pTransactionContext));
  1142. SpBuffer2Object(Buf, ctx->Req);
  1143. pTransactionContext->GetLinkContext(ctx->link);
  1144. EntityResource::setLink(ctx->link);
  1145. Handle_SendAgentText(ctx);
  1146. }
  1147. break;
  1148. case UIService_Method_SetMenuTree:
  1149. {
  1150. SpOnewayCallContext<UIService_SetMenuTree_Info>::Pointer ctx;
  1151. ctx.Attach(new SpOnewayCallContext<UIService_SetMenuTree_Info>());
  1152. SpBuffer2Object(Buf, ctx->Info);
  1153. pTransactionContext->GetLinkContext(ctx->link);
  1154. EntityResource::setLink(ctx->link);
  1155. Handle_SetMenuTree(ctx);
  1156. }
  1157. break;
  1158. case UIService_Method_SetMenuPath:
  1159. {
  1160. SpOnewayCallContext<UIService_SetMenuPath_Info>::Pointer ctx;
  1161. ctx.Attach(new SpOnewayCallContext<UIService_SetMenuPath_Info>());
  1162. SpBuffer2Object(Buf, ctx->Info);
  1163. pTransactionContext->GetLinkContext(ctx->link);
  1164. EntityResource::setLink(ctx->link);
  1165. Handle_SetMenuPath(ctx);
  1166. }
  1167. break;
  1168. case UIService_Method_SendFrontSyncData:
  1169. {
  1170. SpOnewayCallContext<UIService_SendFrontSyncData_Info>::Pointer ctx;
  1171. ctx.Attach(new SpOnewayCallContext<UIService_SendFrontSyncData_Info>());
  1172. SpBuffer2Object(Buf, ctx->Info);
  1173. pTransactionContext->GetLinkContext(ctx->link);
  1174. EntityResource::setLink(ctx->link);
  1175. Handle_SendFrontSyncData(ctx);
  1176. }
  1177. break;
  1178. case UIService_Method_StartRecordVideo:
  1179. {
  1180. SpReqAnsContext<UIService_StartRecordVideo_Req,UIService_StartRecordVideo_Ans>::Pointer ctx;
  1181. ctx.Attach(new SpReqAnsContext<UIService_StartRecordVideo_Req,UIService_StartRecordVideo_Ans>(pTransactionContext));
  1182. SpBuffer2Object(Buf, ctx->Req);
  1183. pTransactionContext->GetLinkContext(ctx->link);
  1184. EntityResource::setLink(ctx->link);
  1185. Handle_StartRecordVideo(ctx);
  1186. }
  1187. break;
  1188. case UIService_Method_StopRecordVideo:
  1189. {
  1190. SpReqAnsContext<UIService_StopRecordVideo_Req,UIService_StopRecordVideo_Ans>::Pointer ctx;
  1191. ctx.Attach(new SpReqAnsContext<UIService_StopRecordVideo_Req,UIService_StopRecordVideo_Ans>(pTransactionContext));
  1192. SpBuffer2Object(Buf, ctx->Req);
  1193. pTransactionContext->GetLinkContext(ctx->link);
  1194. EntityResource::setLink(ctx->link);
  1195. Handle_StopRecordVideo(ctx);
  1196. }
  1197. break;
  1198. case UIService_Method_ShowVideo:
  1199. {
  1200. SpReqAnsContext<UIService_ShowVideo_Req,UIService_ShowVideo_Ans>::Pointer ctx;
  1201. ctx.Attach(new SpReqAnsContext<UIService_ShowVideo_Req,UIService_ShowVideo_Ans>(pTransactionContext));
  1202. SpBuffer2Object(Buf, ctx->Req);
  1203. pTransactionContext->GetLinkContext(ctx->link);
  1204. EntityResource::setLink(ctx->link);
  1205. Handle_ShowVideo(ctx);
  1206. }
  1207. break;
  1208. case UIService_Method_SaveVideo:
  1209. {
  1210. SpReqAnsContext<UIService_SaveVideo_Req,UIService_SaveVideo_Ans>::Pointer ctx;
  1211. ctx.Attach(new SpReqAnsContext<UIService_SaveVideo_Req,UIService_SaveVideo_Ans>(pTransactionContext));
  1212. SpBuffer2Object(Buf, ctx->Req);
  1213. pTransactionContext->GetLinkContext(ctx->link);
  1214. EntityResource::setLink(ctx->link);
  1215. Handle_SaveVideo(ctx);
  1216. }
  1217. break;
  1218. case UIService_Method_DeleteVideo:
  1219. {
  1220. SpReqAnsContext<UIService_DeleteVideo_Req,UIService_DeleteVideo_Ans>::Pointer ctx;
  1221. ctx.Attach(new SpReqAnsContext<UIService_DeleteVideo_Req,UIService_DeleteVideo_Ans>(pTransactionContext));
  1222. SpBuffer2Object(Buf, ctx->Req);
  1223. pTransactionContext->GetLinkContext(ctx->link);
  1224. EntityResource::setLink(ctx->link);
  1225. Handle_DeleteVideo(ctx);
  1226. }
  1227. break;
  1228. case UIService_Method_StartPlayVideo:
  1229. {
  1230. SpReqAnsContext<UIService_StartPlayVideo_Req,UIService_StartPlayVideo_Ans>::Pointer ctx;
  1231. ctx.Attach(new SpReqAnsContext<UIService_StartPlayVideo_Req,UIService_StartPlayVideo_Ans>(pTransactionContext));
  1232. SpBuffer2Object(Buf, ctx->Req);
  1233. pTransactionContext->GetLinkContext(ctx->link);
  1234. EntityResource::setLink(ctx->link);
  1235. Handle_StartPlayVideo(ctx);
  1236. }
  1237. break;
  1238. case UIService_Method_StartPlayAudio:
  1239. {
  1240. SpReqAnsContext<UIService_StartPlayAudio_Req,UIService_StartPlayAudio_Ans>::Pointer ctx;
  1241. ctx.Attach(new SpReqAnsContext<UIService_StartPlayAudio_Req,UIService_StartPlayAudio_Ans>(pTransactionContext));
  1242. SpBuffer2Object(Buf, ctx->Req);
  1243. pTransactionContext->GetLinkContext(ctx->link);
  1244. EntityResource::setLink(ctx->link);
  1245. Handle_StartPlayAudio(ctx);
  1246. }
  1247. break;
  1248. case UIService_Method_StartPlayImage:
  1249. {
  1250. SpReqAnsContext<UIService_StartPlayImage_Req,UIService_StartPlayImage_Ans>::Pointer ctx;
  1251. ctx.Attach(new SpReqAnsContext<UIService_StartPlayImage_Req,UIService_StartPlayImage_Ans>(pTransactionContext));
  1252. SpBuffer2Object(Buf, ctx->Req);
  1253. pTransactionContext->GetLinkContext(ctx->link);
  1254. EntityResource::setLink(ctx->link);
  1255. Handle_StartPlayImage(ctx);
  1256. }
  1257. break;
  1258. case UIService_Method_StopPlayVideo:
  1259. {
  1260. SpReqAnsContext<UIService_StopPlayVideo_Req,UIService_StopPlayVideo_Ans>::Pointer ctx;
  1261. ctx.Attach(new SpReqAnsContext<UIService_StopPlayVideo_Req,UIService_StopPlayVideo_Ans>(pTransactionContext));
  1262. SpBuffer2Object(Buf, ctx->Req);
  1263. pTransactionContext->GetLinkContext(ctx->link);
  1264. EntityResource::setLink(ctx->link);
  1265. Handle_StopPlayVideo(ctx);
  1266. }
  1267. break;
  1268. case UIService_Method_StopPlayAudio:
  1269. {
  1270. SpReqAnsContext<UIService_StopPlayAudio_Req,UIService_StopPlayAudio_Ans>::Pointer ctx;
  1271. ctx.Attach(new SpReqAnsContext<UIService_StopPlayAudio_Req,UIService_StopPlayAudio_Ans>(pTransactionContext));
  1272. SpBuffer2Object(Buf, ctx->Req);
  1273. pTransactionContext->GetLinkContext(ctx->link);
  1274. EntityResource::setLink(ctx->link);
  1275. Handle_StopPlayAudio(ctx);
  1276. }
  1277. break;
  1278. case UIService_Method_StopPlayImage:
  1279. {
  1280. SpReqAnsContext<UIService_StopPlayImage_Req,UIService_StopPlayImage_Ans>::Pointer ctx;
  1281. ctx.Attach(new SpReqAnsContext<UIService_StopPlayImage_Req,UIService_StopPlayImage_Ans>(pTransactionContext));
  1282. SpBuffer2Object(Buf, ctx->Req);
  1283. pTransactionContext->GetLinkContext(ctx->link);
  1284. EntityResource::setLink(ctx->link);
  1285. Handle_StopPlayImage(ctx);
  1286. }
  1287. break;
  1288. case UIService_Method_StartPhotograph:
  1289. {
  1290. SpOnewayCallContext<UIService_StartPhotograph_Info>::Pointer ctx;
  1291. ctx.Attach(new SpOnewayCallContext<UIService_StartPhotograph_Info>());
  1292. SpBuffer2Object(Buf, ctx->Info);
  1293. pTransactionContext->GetLinkContext(ctx->link);
  1294. EntityResource::setLink(ctx->link);
  1295. Handle_StartPhotograph(ctx);
  1296. }
  1297. break;
  1298. case UIService_Method_StopPhotograph:
  1299. {
  1300. SpOnewayCallContext<UIService_StopPhotograph_Info>::Pointer ctx;
  1301. ctx.Attach(new SpOnewayCallContext<UIService_StopPhotograph_Info>());
  1302. SpBuffer2Object(Buf, ctx->Info);
  1303. pTransactionContext->GetLinkContext(ctx->link);
  1304. EntityResource::setLink(ctx->link);
  1305. Handle_StopPhotograph(ctx);
  1306. }
  1307. break;
  1308. case UIService_Method_SendOperateState:
  1309. {
  1310. SpOnewayCallContext<UIService_SendOperateState_Info>::Pointer ctx;
  1311. ctx.Attach(new SpOnewayCallContext<UIService_SendOperateState_Info>());
  1312. SpBuffer2Object(Buf, ctx->Info);
  1313. pTransactionContext->GetLinkContext(ctx->link);
  1314. EntityResource::setLink(ctx->link);
  1315. Handle_SendOperateState(ctx);
  1316. }
  1317. break;
  1318. case UIService_Method_CheckContinuRecord:
  1319. {
  1320. SpReqAnsContext<UIService_CheckContinuRecord_Req,UIService_CheckContinuRecord_Ans>::Pointer ctx;
  1321. ctx.Attach(new SpReqAnsContext<UIService_CheckContinuRecord_Req,UIService_CheckContinuRecord_Ans>(pTransactionContext));
  1322. SpBuffer2Object(Buf, ctx->Req);
  1323. pTransactionContext->GetLinkContext(ctx->link);
  1324. EntityResource::setLink(ctx->link);
  1325. Handle_CheckContinuRecord(ctx);
  1326. }
  1327. break;
  1328. case UIService_Method_StartContinuRecord:
  1329. {
  1330. SpReqAnsContext<UIService_StartContinuRecord_Req,UIService_StartContinuRecord_Ans>::Pointer ctx;
  1331. ctx.Attach(new SpReqAnsContext<UIService_StartContinuRecord_Req,UIService_StartContinuRecord_Ans>(pTransactionContext));
  1332. SpBuffer2Object(Buf, ctx->Req);
  1333. pTransactionContext->GetLinkContext(ctx->link);
  1334. EntityResource::setLink(ctx->link);
  1335. Handle_StartContinuRecord(ctx);
  1336. }
  1337. break;
  1338. case UIService_Method_StopContinuRecord:
  1339. {
  1340. SpReqAnsContext<UIService_StopContinuRecord_Req,UIService_StopContinuRecord_Ans>::Pointer ctx;
  1341. ctx.Attach(new SpReqAnsContext<UIService_StopContinuRecord_Req,UIService_StopContinuRecord_Ans>(pTransactionContext));
  1342. SpBuffer2Object(Buf, ctx->Req);
  1343. pTransactionContext->GetLinkContext(ctx->link);
  1344. EntityResource::setLink(ctx->link);
  1345. Handle_StopContinuRecord(ctx);
  1346. }
  1347. break;
  1348. case UIService_Method_StartEchoContinuRecord:
  1349. {
  1350. SpReqAnsContext<UIService_StartEchoContinuRecord_Req,UIService_StartEchoContinuRecord_Ans>::Pointer ctx;
  1351. ctx.Attach(new SpReqAnsContext<UIService_StartEchoContinuRecord_Req,UIService_StartEchoContinuRecord_Ans>(pTransactionContext));
  1352. SpBuffer2Object(Buf, ctx->Req);
  1353. pTransactionContext->GetLinkContext(ctx->link);
  1354. EntityResource::setLink(ctx->link);
  1355. Handle_StartEchoContinuRecord(ctx);
  1356. }
  1357. break;
  1358. case UIService_Method_StopEchoContinuRecord:
  1359. {
  1360. SpReqAnsContext<UIService_StopEchoContinuRecord_Req,UIService_StopEchoContinuRecord_Ans>::Pointer ctx;
  1361. ctx.Attach(new SpReqAnsContext<UIService_StopEchoContinuRecord_Req,UIService_StopEchoContinuRecord_Ans>(pTransactionContext));
  1362. SpBuffer2Object(Buf, ctx->Req);
  1363. pTransactionContext->GetLinkContext(ctx->link);
  1364. EntityResource::setLink(ctx->link);
  1365. Handle_StopEchoContinuRecord(ctx);
  1366. }
  1367. break;
  1368. case UIService_Method_HideOnlineVideo:
  1369. {
  1370. SpOnewayCallContext<UIService_HideOnlineVideo_Info>::Pointer ctx;
  1371. ctx.Attach(new SpOnewayCallContext<UIService_HideOnlineVideo_Info>());
  1372. SpBuffer2Object(Buf, ctx->Info);
  1373. pTransactionContext->GetLinkContext(ctx->link);
  1374. EntityResource::setLink(ctx->link);
  1375. Handle_HideOnlineVideo(ctx);
  1376. }
  1377. break;
  1378. case UIService_Method_ShowOnlineVideo:
  1379. {
  1380. SpOnewayCallContext<UIService_ShowOnlineVideo_Info>::Pointer ctx;
  1381. ctx.Attach(new SpOnewayCallContext<UIService_ShowOnlineVideo_Info>());
  1382. SpBuffer2Object(Buf, ctx->Info);
  1383. pTransactionContext->GetLinkContext(ctx->link);
  1384. EntityResource::setLink(ctx->link);
  1385. Handle_ShowOnlineVideo(ctx);
  1386. }
  1387. break;
  1388. case UIService_Method_AnswerPacket:
  1389. {
  1390. SpReqAnsContext<UIService_AnswerPacket_Req,UIService_AnswerPacket_Ans>::Pointer ctx;
  1391. ctx.Attach(new SpReqAnsContext<UIService_AnswerPacket_Req,UIService_AnswerPacket_Ans>(pTransactionContext));
  1392. SpBuffer2Object(Buf, ctx->Req);
  1393. pTransactionContext->GetLinkContext(ctx->link);
  1394. EntityResource::setLink(ctx->link);
  1395. Handle_AnswerPacket(ctx);
  1396. }
  1397. break;
  1398. case UIService_Method_GetLocalVideoVolume:
  1399. {
  1400. SpReqAnsContext<UIService_GetLocalVideoVolume_Req,UIService_GetLocalVideoVolume_Ans>::Pointer ctx;
  1401. ctx.Attach(new SpReqAnsContext<UIService_GetLocalVideoVolume_Req,UIService_GetLocalVideoVolume_Ans>(pTransactionContext));
  1402. SpBuffer2Object(Buf, ctx->Req);
  1403. pTransactionContext->GetLinkContext(ctx->link);
  1404. EntityResource::setLink(ctx->link);
  1405. Handle_GetLocalVideoVolume(ctx);
  1406. }
  1407. break;
  1408. case UIService_Method_SetLocalVideoVolume:
  1409. {
  1410. SpReqAnsContext<UIService_SetLocalVideoVolume_Req,UIService_SetLocalVideoVolume_Ans>::Pointer ctx;
  1411. ctx.Attach(new SpReqAnsContext<UIService_SetLocalVideoVolume_Req,UIService_SetLocalVideoVolume_Ans>(pTransactionContext));
  1412. SpBuffer2Object(Buf, ctx->Req);
  1413. pTransactionContext->GetLinkContext(ctx->link);
  1414. EntityResource::setLink(ctx->link);
  1415. Handle_SetLocalVideoVolume(ctx);
  1416. }
  1417. break;
  1418. case UIService_Method_SendBusinessDesktopCmd:
  1419. {
  1420. SpReqAnsContext<UIService_SendBusinessDesktopCmd_Req,UIService_SendBusinessDesktopCmd_Ans>::Pointer ctx;
  1421. ctx.Attach(new SpReqAnsContext<UIService_SendBusinessDesktopCmd_Req,UIService_SendBusinessDesktopCmd_Ans>(pTransactionContext));
  1422. SpBuffer2Object(Buf, ctx->Req);
  1423. pTransactionContext->GetLinkContext(ctx->link);
  1424. EntityResource::setLink(ctx->link);
  1425. Handle_SendBusinessDesktopCmd(ctx);
  1426. }
  1427. break;
  1428. case UIService_Method_HideLocalVideo:
  1429. {
  1430. SpOnewayCallContext<UIService_HideLocalVideo_Info>::Pointer ctx;
  1431. ctx.Attach(new SpOnewayCallContext<UIService_HideLocalVideo_Info>());
  1432. SpBuffer2Object(Buf, ctx->Info);
  1433. pTransactionContext->GetLinkContext(ctx->link);
  1434. EntityResource::setLink(ctx->link);
  1435. Handle_HideLocalVideo(ctx);
  1436. }
  1437. break;
  1438. case UIService_Method_ShowLocalVideo:
  1439. {
  1440. SpOnewayCallContext<UIService_ShowLocalVideo_Info>::Pointer ctx;
  1441. ctx.Attach(new SpOnewayCallContext<UIService_ShowLocalVideo_Info>());
  1442. SpBuffer2Object(Buf, ctx->Info);
  1443. pTransactionContext->GetLinkContext(ctx->link);
  1444. EntityResource::setLink(ctx->link);
  1445. Handle_ShowLocalVideo(ctx);
  1446. }
  1447. break;
  1448. case UIService_Method_HidePersonArea:
  1449. {
  1450. SpOnewayCallContext<UIService_HidePersonArea_Info>::Pointer ctx;
  1451. ctx.Attach(new SpOnewayCallContext<UIService_HidePersonArea_Info>());
  1452. SpBuffer2Object(Buf, ctx->Info);
  1453. pTransactionContext->GetLinkContext(ctx->link);
  1454. EntityResource::setLink(ctx->link);
  1455. Handle_HidePersonArea(ctx);
  1456. }
  1457. break;
  1458. case UIService_Method_ShowPersonArea:
  1459. {
  1460. SpOnewayCallContext<UIService_ShowPersonArea_Info>::Pointer ctx;
  1461. ctx.Attach(new SpOnewayCallContext<UIService_ShowPersonArea_Info>());
  1462. SpBuffer2Object(Buf, ctx->Info);
  1463. pTransactionContext->GetLinkContext(ctx->link);
  1464. EntityResource::setLink(ctx->link);
  1465. Handle_ShowPersonArea(ctx);
  1466. }
  1467. break;
  1468. case UIService_Method_VideoAppendWaterMark:
  1469. {
  1470. SpReqAnsContext<UIService_VideoAppendWaterMark_Req,UIService_VideoAppendWaterMark_Ans>::Pointer ctx;
  1471. ctx.Attach(new SpReqAnsContext<UIService_VideoAppendWaterMark_Req,UIService_VideoAppendWaterMark_Ans>(pTransactionContext));
  1472. SpBuffer2Object(Buf, ctx->Req);
  1473. pTransactionContext->GetLinkContext(ctx->link);
  1474. EntityResource::setLink(ctx->link);
  1475. Handle_VideoAppendWaterMark(ctx);
  1476. }
  1477. break;
  1478. case UIService_Method_GetLocalAudioVolume:
  1479. {
  1480. SpReqAnsContext<UIService_GetLocalAudioVolume_Req,UIService_GetLocalAudioVolume_Ans>::Pointer ctx;
  1481. ctx.Attach(new SpReqAnsContext<UIService_GetLocalAudioVolume_Req,UIService_GetLocalAudioVolume_Ans>(pTransactionContext));
  1482. SpBuffer2Object(Buf, ctx->Req);
  1483. pTransactionContext->GetLinkContext(ctx->link);
  1484. EntityResource::setLink(ctx->link);
  1485. Handle_GetLocalAudioVolume(ctx);
  1486. }
  1487. break;
  1488. case UIService_Method_SetLocalAudioVolume:
  1489. {
  1490. SpReqAnsContext<UIService_SetLocalAudioVolume_Req,UIService_SetLocalAudioVolume_Ans>::Pointer ctx;
  1491. ctx.Attach(new SpReqAnsContext<UIService_SetLocalAudioVolume_Req,UIService_SetLocalAudioVolume_Ans>(pTransactionContext));
  1492. SpBuffer2Object(Buf, ctx->Req);
  1493. pTransactionContext->GetLinkContext(ctx->link);
  1494. EntityResource::setLink(ctx->link);
  1495. Handle_SetLocalAudioVolume(ctx);
  1496. }
  1497. break;
  1498. case UIService_Method_StartRemoteRecord:
  1499. {
  1500. SpReqAnsContext<UIService_StartRemoteRecord_Req,UIService_StartRemoteRecord_Ans>::Pointer ctx;
  1501. ctx.Attach(new SpReqAnsContext<UIService_StartRemoteRecord_Req,UIService_StartRemoteRecord_Ans>(pTransactionContext));
  1502. SpBuffer2Object(Buf, ctx->Req);
  1503. pTransactionContext->GetLinkContext(ctx->link);
  1504. EntityResource::setLink(ctx->link);
  1505. Handle_StartRemoteRecord(ctx);
  1506. }
  1507. break;
  1508. case UIService_Method_StopRemoteRecord:
  1509. {
  1510. SpReqAnsContext<UIService_StopRemoteRecord_Req,UIService_StopRemoteRecord_Ans>::Pointer ctx;
  1511. ctx.Attach(new SpReqAnsContext<UIService_StopRemoteRecord_Req,UIService_StopRemoteRecord_Ans>(pTransactionContext));
  1512. SpBuffer2Object(Buf, ctx->Req);
  1513. pTransactionContext->GetLinkContext(ctx->link);
  1514. EntityResource::setLink(ctx->link);
  1515. Handle_StopRemoteRecord(ctx);
  1516. }
  1517. break;
  1518. case UIService_Method_StartSalesRecord:
  1519. {
  1520. SpReqAnsContext<UIService_StartSalesRecord_Req,UIService_StartSalesRecord_Ans>::Pointer ctx;
  1521. ctx.Attach(new SpReqAnsContext<UIService_StartSalesRecord_Req,UIService_StartSalesRecord_Ans>(pTransactionContext));
  1522. SpBuffer2Object(Buf, ctx->Req);
  1523. pTransactionContext->GetLinkContext(ctx->link);
  1524. EntityResource::setLink(ctx->link);
  1525. Handle_StartSalesRecord(ctx);
  1526. }
  1527. break;
  1528. case UIService_Method_StartRecordPreview:
  1529. {
  1530. SpReqAnsContext<UIService_StartRecordPreview_Req,UIService_StartRecordPreview_Ans>::Pointer ctx;
  1531. ctx.Attach(new SpReqAnsContext<UIService_StartRecordPreview_Req,UIService_StartRecordPreview_Ans>(pTransactionContext));
  1532. SpBuffer2Object(Buf, ctx->Req);
  1533. pTransactionContext->GetLinkContext(ctx->link);
  1534. EntityResource::setLink(ctx->link);
  1535. Handle_StartRecordPreview(ctx);
  1536. }
  1537. break;
  1538. case UIService_Method_StartSalesVideoRecord:
  1539. {
  1540. SpReqAnsContext<UIService_StartSalesVideoRecord_Req,UIService_StartSalesVideoRecord_Ans>::Pointer ctx;
  1541. ctx.Attach(new SpReqAnsContext<UIService_StartSalesVideoRecord_Req,UIService_StartSalesVideoRecord_Ans>(pTransactionContext));
  1542. SpBuffer2Object(Buf, ctx->Req);
  1543. pTransactionContext->GetLinkContext(ctx->link);
  1544. EntityResource::setLink(ctx->link);
  1545. Handle_StartSalesVideoRecord(ctx);
  1546. }
  1547. break;
  1548. case UIService_Method_AjustVideoPreviewSize:
  1549. {
  1550. SpReqAnsContext<UIService_AjustVideoPreviewSize_Req,UIService_AjustVideoPreviewSize_Ans>::Pointer ctx;
  1551. ctx.Attach(new SpReqAnsContext<UIService_AjustVideoPreviewSize_Req,UIService_AjustVideoPreviewSize_Ans>(pTransactionContext));
  1552. SpBuffer2Object(Buf, ctx->Req);
  1553. pTransactionContext->GetLinkContext(ctx->link);
  1554. EntityResource::setLink(ctx->link);
  1555. Handle_AjustVideoPreviewSize(ctx);
  1556. }
  1557. break;
  1558. case UIService_Method_StopShowVideo:
  1559. {
  1560. SpReqAnsContext<UIService_StopShowVideo_Req,UIService_StopShowVideo_Ans>::Pointer ctx;
  1561. ctx.Attach(new SpReqAnsContext<UIService_StopShowVideo_Req,UIService_StopShowVideo_Ans>(pTransactionContext));
  1562. SpBuffer2Object(Buf, ctx->Req);
  1563. pTransactionContext->GetLinkContext(ctx->link);
  1564. EntityResource::setLink(ctx->link);
  1565. Handle_StopShowVideo(ctx);
  1566. }
  1567. break;
  1568. case UIService_Method_StartPlaySalesRecord:
  1569. {
  1570. SpReqAnsContext<UIService_StartPlaySalesRecord_Req,UIService_StartPlaySalesRecord_Ans>::Pointer ctx;
  1571. ctx.Attach(new SpReqAnsContext<UIService_StartPlaySalesRecord_Req,UIService_StartPlaySalesRecord_Ans>(pTransactionContext));
  1572. SpBuffer2Object(Buf, ctx->Req);
  1573. pTransactionContext->GetLinkContext(ctx->link);
  1574. EntityResource::setLink(ctx->link);
  1575. Handle_StartPlaySalesRecord(ctx);
  1576. }
  1577. break;
  1578. case UIService_Method_SendH5SyncData:
  1579. {
  1580. SpOnewayCallContext<UIService_SendH5SyncData_Info>::Pointer ctx;
  1581. ctx.Attach(new SpOnewayCallContext<UIService_SendH5SyncData_Info>());
  1582. SpBuffer2Object(Buf, ctx->Info);
  1583. pTransactionContext->GetLinkContext(ctx->link);
  1584. EntityResource::setLink(ctx->link);
  1585. Handle_SendH5SyncData(ctx);
  1586. }
  1587. break;
  1588. case UIService_Method_GetHandfreeOutVolume:
  1589. {
  1590. SpReqAnsContext<UIService_GetHandfreeOutVolume_Req,UIService_GetHandfreeOutVolume_Ans>::Pointer ctx;
  1591. ctx.Attach(new SpReqAnsContext<UIService_GetHandfreeOutVolume_Req,UIService_GetHandfreeOutVolume_Ans>(pTransactionContext));
  1592. SpBuffer2Object(Buf, ctx->Req);
  1593. pTransactionContext->GetLinkContext(ctx->link);
  1594. EntityResource::setLink(ctx->link);
  1595. Handle_GetHandfreeOutVolume(ctx);
  1596. }
  1597. break;
  1598. case UIService_Method_SetHandfreeOutVolume:
  1599. {
  1600. SpReqAnsContext<UIService_SetHandfreeOutVolume_Req,UIService_SetHandfreeOutVolume_Ans>::Pointer ctx;
  1601. ctx.Attach(new SpReqAnsContext<UIService_SetHandfreeOutVolume_Req,UIService_SetHandfreeOutVolume_Ans>(pTransactionContext));
  1602. SpBuffer2Object(Buf, ctx->Req);
  1603. pTransactionContext->GetLinkContext(ctx->link);
  1604. EntityResource::setLink(ctx->link);
  1605. Handle_SetHandfreeOutVolume(ctx);
  1606. }
  1607. break;
  1608. case UIService_Method_GetPickupOutVolume:
  1609. {
  1610. SpReqAnsContext<UIService_GetPickupOutVolume_Req,UIService_GetPickupOutVolume_Ans>::Pointer ctx;
  1611. ctx.Attach(new SpReqAnsContext<UIService_GetPickupOutVolume_Req,UIService_GetPickupOutVolume_Ans>(pTransactionContext));
  1612. SpBuffer2Object(Buf, ctx->Req);
  1613. pTransactionContext->GetLinkContext(ctx->link);
  1614. EntityResource::setLink(ctx->link);
  1615. Handle_GetPickupOutVolume(ctx);
  1616. }
  1617. break;
  1618. case UIService_Method_SetPickupOutVolume:
  1619. {
  1620. SpReqAnsContext<UIService_SetPickupOutVolume_Req,UIService_SetPickupOutVolume_Ans>::Pointer ctx;
  1621. ctx.Attach(new SpReqAnsContext<UIService_SetPickupOutVolume_Req,UIService_SetPickupOutVolume_Ans>(pTransactionContext));
  1622. SpBuffer2Object(Buf, ctx->Req);
  1623. pTransactionContext->GetLinkContext(ctx->link);
  1624. EntityResource::setLink(ctx->link);
  1625. Handle_SetPickupOutVolume(ctx);
  1626. }
  1627. break;
  1628. case UIService_Method_StartPlayNotice:
  1629. {
  1630. SpReqAnsContext<UIService_StartPlayNotice_Req,UIService_StartPlayNotice_Ans>::Pointer ctx;
  1631. ctx.Attach(new SpReqAnsContext<UIService_StartPlayNotice_Req,UIService_StartPlayNotice_Ans>(pTransactionContext));
  1632. SpBuffer2Object(Buf, ctx->Req);
  1633. pTransactionContext->GetLinkContext(ctx->link);
  1634. EntityResource::setLink(ctx->link);
  1635. Handle_StartPlayNotice(ctx);
  1636. }
  1637. break;
  1638. case UIService_Method_StopPlayNotice:
  1639. {
  1640. SpReqAnsContext<UIService_StopPlayNotice_Req,UIService_StopPlayNotice_Ans>::Pointer ctx;
  1641. ctx.Attach(new SpReqAnsContext<UIService_StopPlayNotice_Req,UIService_StopPlayNotice_Ans>(pTransactionContext));
  1642. SpBuffer2Object(Buf, ctx->Req);
  1643. pTransactionContext->GetLinkContext(ctx->link);
  1644. EntityResource::setLink(ctx->link);
  1645. Handle_StopPlayNotice(ctx);
  1646. }
  1647. break;
  1648. case UIService_Method_GetRecordMode:
  1649. {
  1650. SpReqAnsContext<UIService_GetRecordMode_Req,UIService_GetRecordMode_Ans>::Pointer ctx;
  1651. ctx.Attach(new SpReqAnsContext<UIService_GetRecordMode_Req,UIService_GetRecordMode_Ans>(pTransactionContext));
  1652. SpBuffer2Object(Buf, ctx->Req);
  1653. pTransactionContext->GetLinkContext(ctx->link);
  1654. EntityResource::setLink(ctx->link);
  1655. Handle_GetRecordMode(ctx);
  1656. }
  1657. break;
  1658. case UIService_Method_StartTransactionRecord:
  1659. {
  1660. SpReqAnsContext<UIService_StartTransactionRecord_Req,UIService_StartTransactionRecord_Ans>::Pointer ctx;
  1661. ctx.Attach(new SpReqAnsContext<UIService_StartTransactionRecord_Req,UIService_StartTransactionRecord_Ans>(pTransactionContext));
  1662. SpBuffer2Object(Buf, ctx->Req);
  1663. pTransactionContext->GetLinkContext(ctx->link);
  1664. EntityResource::setLink(ctx->link);
  1665. Handle_StartTransactionRecord(ctx);
  1666. }
  1667. break;
  1668. case UIService_Method_StopTransactionRecord:
  1669. {
  1670. SpReqAnsContext<UIService_StopTransactionRecord_Req,UIService_StopTransactionRecord_Ans>::Pointer ctx;
  1671. ctx.Attach(new SpReqAnsContext<UIService_StopTransactionRecord_Req,UIService_StopTransactionRecord_Ans>(pTransactionContext));
  1672. SpBuffer2Object(Buf, ctx->Req);
  1673. pTransactionContext->GetLinkContext(ctx->link);
  1674. EntityResource::setLink(ctx->link);
  1675. Handle_StopTransactionRecord(ctx);
  1676. }
  1677. break;
  1678. case UIService_Method_GetCallState:
  1679. {
  1680. SpReqAnsContext<UIService_GetCallState_Req,UIService_GetCallState_Ans>::Pointer ctx;
  1681. ctx.Attach(new SpReqAnsContext<UIService_GetCallState_Req,UIService_GetCallState_Ans>(pTransactionContext));
  1682. SpBuffer2Object(Buf, ctx->Req);
  1683. pTransactionContext->GetLinkContext(ctx->link);
  1684. EntityResource::setLink(ctx->link);
  1685. Handle_GetCallState(ctx);
  1686. }
  1687. break;
  1688. case UIService_Method_HangupCall:
  1689. {
  1690. SpOnewayCallContext<UIService_HangupCall_Info>::Pointer ctx;
  1691. ctx.Attach(new SpOnewayCallContext<UIService_HangupCall_Info>());
  1692. SpBuffer2Object(Buf, ctx->Info);
  1693. pTransactionContext->GetLinkContext(ctx->link);
  1694. EntityResource::setLink(ctx->link);
  1695. Handle_HangupCall(ctx);
  1696. }
  1697. break;
  1698. case UIService_Method_GetTransactionRecordState:
  1699. {
  1700. SpReqAnsContext<UIService_GetTransactionRecordState_Req,UIService_GetTransactionRecordState_Ans>::Pointer ctx;
  1701. ctx.Attach(new SpReqAnsContext<UIService_GetTransactionRecordState_Req,UIService_GetTransactionRecordState_Ans>(pTransactionContext));
  1702. SpBuffer2Object(Buf, ctx->Req);
  1703. pTransactionContext->GetLinkContext(ctx->link);
  1704. EntityResource::setLink(ctx->link);
  1705. Handle_GetTransactionRecordState(ctx);
  1706. }
  1707. break;
  1708. case UIService_Method_GetHandfreeInVolume:
  1709. {
  1710. SpReqAnsContext<UIService_GetHandfreeInVolume_Req,UIService_GetHandfreeInVolume_Ans>::Pointer ctx;
  1711. ctx.Attach(new SpReqAnsContext<UIService_GetHandfreeInVolume_Req,UIService_GetHandfreeInVolume_Ans>(pTransactionContext));
  1712. SpBuffer2Object(Buf, ctx->Req);
  1713. pTransactionContext->GetLinkContext(ctx->link);
  1714. EntityResource::setLink(ctx->link);
  1715. Handle_GetHandfreeInVolume(ctx);
  1716. }
  1717. break;
  1718. case UIService_Method_SetHandfreeInVolume:
  1719. {
  1720. SpReqAnsContext<UIService_SetHandfreeInVolume_Req,UIService_SetHandfreeInVolume_Ans>::Pointer ctx;
  1721. ctx.Attach(new SpReqAnsContext<UIService_SetHandfreeInVolume_Req,UIService_SetHandfreeInVolume_Ans>(pTransactionContext));
  1722. SpBuffer2Object(Buf, ctx->Req);
  1723. pTransactionContext->GetLinkContext(ctx->link);
  1724. EntityResource::setLink(ctx->link);
  1725. Handle_SetHandfreeInVolume(ctx);
  1726. }
  1727. break;
  1728. case UIService_Method_GetPickupInVolume:
  1729. {
  1730. SpReqAnsContext<UIService_GetPickupInVolume_Req,UIService_GetPickupInVolume_Ans>::Pointer ctx;
  1731. ctx.Attach(new SpReqAnsContext<UIService_GetPickupInVolume_Req,UIService_GetPickupInVolume_Ans>(pTransactionContext));
  1732. SpBuffer2Object(Buf, ctx->Req);
  1733. pTransactionContext->GetLinkContext(ctx->link);
  1734. EntityResource::setLink(ctx->link);
  1735. Handle_GetPickupInVolume(ctx);
  1736. }
  1737. break;
  1738. case UIService_Method_SetPickupInVolume:
  1739. {
  1740. SpReqAnsContext<UIService_SetPickupInVolume_Req,UIService_SetPickupInVolume_Ans>::Pointer ctx;
  1741. ctx.Attach(new SpReqAnsContext<UIService_SetPickupInVolume_Req,UIService_SetPickupInVolume_Ans>(pTransactionContext));
  1742. SpBuffer2Object(Buf, ctx->Req);
  1743. pTransactionContext->GetLinkContext(ctx->link);
  1744. EntityResource::setLink(ctx->link);
  1745. Handle_SetPickupInVolume(ctx);
  1746. }
  1747. break;
  1748. case UIService_Method_GetAudioInDevices:
  1749. {
  1750. SpReqAnsContext<UIService_GetAudioInDevices_Req,UIService_GetAudioInDevices_Ans>::Pointer ctx;
  1751. ctx.Attach(new SpReqAnsContext<UIService_GetAudioInDevices_Req,UIService_GetAudioInDevices_Ans>(pTransactionContext));
  1752. SpBuffer2Object(Buf, ctx->Req);
  1753. pTransactionContext->GetLinkContext(ctx->link);
  1754. EntityResource::setLink(ctx->link);
  1755. Handle_GetAudioInDevices(ctx);
  1756. }
  1757. break;
  1758. case UIService_Method_GetAudioOutDevices:
  1759. {
  1760. SpReqAnsContext<UIService_GetAudioOutDevices_Req,UIService_GetAudioOutDevices_Ans>::Pointer ctx;
  1761. ctx.Attach(new SpReqAnsContext<UIService_GetAudioOutDevices_Req,UIService_GetAudioOutDevices_Ans>(pTransactionContext));
  1762. SpBuffer2Object(Buf, ctx->Req);
  1763. pTransactionContext->GetLinkContext(ctx->link);
  1764. EntityResource::setLink(ctx->link);
  1765. Handle_GetAudioOutDevices(ctx);
  1766. }
  1767. break;
  1768. case UIService_Method_GetCameraInfo:
  1769. {
  1770. SpReqAnsContext<UIService_GetCameraInfo_Req,UIService_GetCameraInfo_Ans>::Pointer ctx;
  1771. ctx.Attach(new SpReqAnsContext<UIService_GetCameraInfo_Req,UIService_GetCameraInfo_Ans>(pTransactionContext));
  1772. SpBuffer2Object(Buf, ctx->Req);
  1773. pTransactionContext->GetLinkContext(ctx->link);
  1774. EntityResource::setLink(ctx->link);
  1775. Handle_GetCameraInfo(ctx);
  1776. }
  1777. break;
  1778. case UIService_Method_GetMediaDeviceInfo:
  1779. {
  1780. SpReqAnsContext<UIService_GetMediaDeviceInfo_Req,UIService_GetMediaDeviceInfo_Ans>::Pointer ctx;
  1781. ctx.Attach(new SpReqAnsContext<UIService_GetMediaDeviceInfo_Req,UIService_GetMediaDeviceInfo_Ans>(pTransactionContext));
  1782. SpBuffer2Object(Buf, ctx->Req);
  1783. pTransactionContext->GetLinkContext(ctx->link);
  1784. EntityResource::setLink(ctx->link);
  1785. Handle_GetMediaDeviceInfo(ctx);
  1786. }
  1787. break;
  1788. case UIService_Method_GetPickUpStatus:
  1789. {
  1790. SpReqAnsContext<UIService_GetPickUpStatus_Req,UIService_GetPickUpStatus_Ans>::Pointer ctx;
  1791. ctx.Attach(new SpReqAnsContext<UIService_GetPickUpStatus_Req,UIService_GetPickUpStatus_Ans>(pTransactionContext));
  1792. SpBuffer2Object(Buf, ctx->Req);
  1793. pTransactionContext->GetLinkContext(ctx->link);
  1794. EntityResource::setLink(ctx->link);
  1795. Handle_GetPickUpStatus(ctx);
  1796. }
  1797. break;
  1798. default:
  1799. assert(0);
  1800. break;
  1801. }
  1802. } else {
  1803. pTransactionContext->SendAnswer(Error);
  1804. }
  1805. }
  1806. };
  1807. ///////////////////////////
  1808. } // namespace InteractiveControl
  1809. #endif // __INTERACTIVECONTROL_SERVER_G_H