Componentes.Terceros.RemObj.../internal/5.0.23.613/1/RemObjects SDK for Delphi/Samples/Super TCP Channel Chat/SuperTCPChannelChatLibrary_Invk.pas
david d99a44999f - Modificación del paquete RemObjects_Core_D10 para que sea un paquete de runtime/designtime (antes era designtime sólo)
- Recompilación en Delphi10 de todos los paquetes de RO para generar las DCU's en Lib\D10

git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.RemObjects@7 b6239004-a887-0f4b-9937-50029ccdca16
2007-09-10 13:36:58 +00:00

119 lines
4.1 KiB
ObjectPascal

unit SuperTCPChannelChatLibrary_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. }
{----------------------------------------------------------------------------}
interface
uses
{vcl:} Classes,
{RemObjects:} uROServer, uROServerIntf, uROTypes, uROClientIntf,
{Generated:} SuperTCPChannelChatLibrary_Intf;
type
TChatServerService_Invoker = class(TROInvoker)
private
protected
published
procedure Invoke_TalkPrivate(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
procedure Invoke_Talk(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
end;
TLoginService_Invoker = class(TROInvoker)
private
protected
published
procedure Invoke_Login(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
procedure Invoke_Logout(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
end;
implementation
uses
{RemObjects:} uRORes, uROClient;
{ TChatServerService_Invoker }
procedure TChatServerService_Invoker.Invoke_TalkPrivate(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ procedure TalkPrivate(const TargetNickname: String; const Message: String); }
var
TargetNickname: String;
Message: String;
begin
try
__Message.Read('TargetNickname', TypeInfo(String), TargetNickname, []);
__Message.Read('Message', TypeInfo(String), Message, []);
(__Instance as IChatServerService).TalkPrivate(TargetNickname, Message);
__Message.InitializeResponseMessage(__Transport, 'SuperTCPChannelChatLibrary', 'ChatServerService', 'TalkPrivateResponse');
__Message.Finalize;
__oResponseOptions := [roNoResponse];
finally
end;
end;
procedure TChatServerService_Invoker.Invoke_Talk(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ procedure Talk(const Message: String); }
var
Message: String;
begin
try
__Message.Read('Message', TypeInfo(String), Message, []);
(__Instance as IChatServerService).Talk(Message);
__Message.InitializeResponseMessage(__Transport, 'SuperTCPChannelChatLibrary', 'ChatServerService', 'TalkResponse');
__Message.Finalize;
__oResponseOptions := [roNoResponse];
finally
end;
end;
{ TLoginService_Invoker }
procedure TLoginService_Invoker.Invoke_Login(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ procedure Login(const Nickname: String); }
var
Nickname: String;
begin
try
__Message.Read('Nickname', TypeInfo(String), Nickname, []);
(__Instance as ILoginService).Login(Nickname);
__Message.InitializeResponseMessage(__Transport, 'SuperTCPChannelChatLibrary', 'LoginService', 'LoginResponse');
__Message.Finalize;
__oResponseOptions := [roNoResponse];
finally
end;
end;
procedure TLoginService_Invoker.Invoke_Logout(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ procedure Logout; }
begin
try
(__Instance as ILoginService).Logout;
__Message.InitializeResponseMessage(__Transport, 'SuperTCPChannelChatLibrary', 'LoginService', 'LogoutResponse');
__Message.Finalize;
__oResponseOptions := [roNoResponse];
finally
end;
end;
end.