unit PairingLibrary_Invk; {----------------------------------------------------------------------------} { This unit was automatically generated by the RemObjects SDK after reading } { the RODL file associated with this project . } { } { Do not modify this unit manually, or your changes will be lost when this } { unit is regenerated the next time you compile the project. } {----------------------------------------------------------------------------} {$I RemObjects.inc} interface uses {vcl:} Classes, {RemObjects:} uROXMLIntf, uROServer, uROServerIntf, uROTypes, uROClientIntf, {Generated:} PairingLibrary_Intf; type TSeekOrigin = Classes.TSeekOrigin; // fake declaration TTestService_Invoker = class(TROInvoker) private protected public constructor Create; override; published procedure Invoke_GetServerTime(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); end; TPairingService_Invoker = class(TROInvoker) private protected public constructor Create; override; published procedure Invoke_LoginAttempt(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); procedure Invoke_ConfirmCode(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); end; implementation uses {RemObjects:} uRORes, uROClient; { TTestService_Invoker } constructor TTestService_Invoker.Create; begin inherited Create; FAbstract := False; end; procedure TTestService_Invoker.Invoke_GetServerTime(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); { function GetServerTime: DateTime; } var lResult: DateTime; begin try lResult := (__Instance as ITestService).GetServerTime; __Message.InitializeResponseMessage(__Transport, 'PairingLibrary', 'TestService', 'GetServerTimeResponse'); __Message.Write('Result', TypeInfo(DateTime), lResult, [paIsDateTime]); __Message.Finalize; __Message.UnsetAttributes(__Transport); finally end; end; { TPairingService_Invoker } constructor TPairingService_Invoker.Create; begin inherited Create; FAbstract := False; end; procedure TPairingService_Invoker.Invoke_LoginAttempt(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); { function LoginAttempt(const ClientGuid: Guid): Integer; } var ClientGuid: Guid; lResult: Integer; begin try __Message.Read('ClientGuid', TypeInfo(Guid), ClientGuid, []); lResult := (__Instance as IPairingService).LoginAttempt(ClientGuid); __Message.InitializeResponseMessage(__Transport, 'PairingLibrary', 'PairingService', 'LoginAttemptResponse'); __Message.Write('Result', TypeInfo(Integer), lResult, []); __Message.Finalize; __Message.UnsetAttributes(__Transport); finally end; end; procedure TPairingService_Invoker.Invoke_ConfirmCode(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions); { function ConfirmCode(const Code: AnsiString; const ClientGuid: Guid): Boolean; } var Code: AnsiString; ClientGuid: Guid; lResult: Boolean; begin try __Message.Read('Code', TypeInfo(AnsiString), Code, []); __Message.Read('ClientGuid', TypeInfo(Guid), ClientGuid, []); lResult := (__Instance as IPairingService).ConfirmCode(Code, ClientGuid); __Message.InitializeResponseMessage(__Transport, 'PairingLibrary', 'PairingService', 'ConfirmCodeResponse'); __Message.Write('Result', TypeInfo(Boolean), lResult, []); __Message.Finalize; __Message.UnsetAttributes(__Transport); finally end; end; initialization end.