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.