- Recompilación en Delphi10 de todos los paquetes de RO para generar las DCU's en Lib\D10 - Recompilación en Delphi10 de todos los paquetes de DA para generar las DCU's en Lib\D10 git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.RemObjects@9 b6239004-a887-0f4b-9937-50029ccdca16
110 lines
3.3 KiB
ObjectPascal
110 lines
3.3 KiB
ObjectPascal
unit BroadcastChatLibrary_Intf;
|
|
|
|
{----------------------------------------------------------------------------}
|
|
{ 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, TypInfo,
|
|
{RemObjects:} uROClasses, uROClient, uROTypes, uROClientIntf;
|
|
|
|
const
|
|
{ Library ID }
|
|
LibraryUID = '{046A7B5C-4E0B-43A9-8EF9-401F5705E52B}';
|
|
|
|
{ Service Interface ID's }
|
|
IBroadcastChatService_IID : TGUID = '{0BD653EA-D4B0-46BE-9856-2FD482115A77}';
|
|
|
|
{ Event ID's }
|
|
|
|
type
|
|
{ Forward declarations }
|
|
IBroadcastChatService = interface;
|
|
|
|
|
|
{ IBroadcastChatService }
|
|
IBroadcastChatService = interface
|
|
['{0BD653EA-D4B0-46BE-9856-2FD482115A77}']
|
|
procedure SendMessage(const iDate: DateTime; const iFrom: String; const iMessage: String);
|
|
function GetInfo: string;
|
|
end;
|
|
|
|
{ CoBroadcastChatService }
|
|
CoBroadcastChatService = class
|
|
class function Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IBroadcastChatService;
|
|
end;
|
|
|
|
{ TBroadcastChatService_Proxy }
|
|
TBroadcastChatService_Proxy = class(TROProxy, IBroadcastChatService)
|
|
protected
|
|
function __GetInterfaceName:string; override;
|
|
|
|
procedure SendMessage(const iDate: DateTime; const iFrom: String; const iMessage: String);
|
|
function GetInfo: string;
|
|
end;
|
|
|
|
implementation
|
|
|
|
uses
|
|
{vcl:} SysUtils,
|
|
{RemObjects:} uROEventRepository, uRORes;
|
|
|
|
{ CoBroadcastChatService }
|
|
|
|
class function CoBroadcastChatService.Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IBroadcastChatService;
|
|
begin
|
|
result := TBroadcastChatService_Proxy.Create(aMessage, aTransportChannel);
|
|
end;
|
|
|
|
{ TBroadcastChatService_Proxy }
|
|
|
|
function TBroadcastChatService_Proxy.__GetInterfaceName:string;
|
|
begin
|
|
result := 'BroadcastChatService';
|
|
end;
|
|
|
|
procedure TBroadcastChatService_Proxy.SendMessage(const iDate: DateTime; const iFrom: String; const iMessage: String);
|
|
begin
|
|
try
|
|
__Message.InitializeRequestMessage(__TransportChannel, 'BroadcastChatLibrary', __InterfaceName, 'SendMessage');
|
|
__Message.Write('iDate', TypeInfo(DateTime), iDate, [paIsDateTime]);
|
|
__Message.Write('iFrom', TypeInfo(String), iFrom, []);
|
|
__Message.Write('iMessage', TypeInfo(String), iMessage, []);
|
|
__Message.Finalize;
|
|
|
|
__TransportChannel.Dispatch(__Message);
|
|
|
|
finally
|
|
__Message.FreeStream;
|
|
end
|
|
end;
|
|
|
|
function TBroadcastChatService_Proxy.GetInfo: string;
|
|
begin
|
|
try
|
|
__Message.InitializeRequestMessage(__TransportChannel, 'BroadcastChatLibrary', __InterfaceName, 'GetInfo');
|
|
__Message.Finalize;
|
|
|
|
__TransportChannel.Dispatch(__Message);
|
|
|
|
__Message.Read('Result', TypeInfo(string), result, []);
|
|
finally
|
|
__Message.FreeStream;
|
|
end
|
|
end;
|
|
|
|
initialization
|
|
RegisterProxyClass(IBroadcastChatService_IID, TBroadcastChatService_Proxy);
|
|
|
|
|
|
finalization
|
|
UnregisterProxyClass(IBroadcastChatService_IID);
|
|
|
|
end.
|