Componentes.Terceros.RemObj.../internal/5.0.24.615/1/RemObjects SDK for Delphi/Samples/Broadcast Chat/BroadcastChatLibrary_Invk.pas

74 lines
2.7 KiB
ObjectPascal

unit BroadcastChatLibrary_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:} BroadcastChatLibrary_Intf;
type
TBroadcastChatService_Invoker = class(TROInvoker)
private
protected
published
procedure Invoke_SendMessage(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
procedure Invoke_GetInfo(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
end;
implementation
uses
{RemObjects:} uRORes, uROClient;
{ TBroadcastChatService_Invoker }
procedure TBroadcastChatService_Invoker.Invoke_SendMessage(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ procedure SendMessage(const iDate: DateTime; const iFrom: String; const iMessage: String); }
var
iDate: DateTime;
iFrom: String;
iMessage: String;
begin
try
__Message.Read('iDate', TypeInfo(DateTime), iDate, [paIsDateTime]);
__Message.Read('iFrom', TypeInfo(String), iFrom, []);
__Message.Read('iMessage', TypeInfo(String), iMessage, []);
(__Instance as IBroadcastChatService).SendMessage(iDate, iFrom, iMessage);
__Message.InitializeResponseMessage(__Transport, 'BroadcastChatLibrary', 'BroadcastChatService', 'SendMessageResponse');
__Message.Finalize;
__oResponseOptions := [roNoResponse];
finally
end;
end;
procedure TBroadcastChatService_Invoker.Invoke_GetInfo(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function GetInfo: string; }
var
lResult: string;
begin
try
lResult := (__Instance as IBroadcastChatService).GetInfo;
__Message.InitializeResponseMessage(__Transport, 'BroadcastChatLibrary', 'BroadcastChatService', 'GetInfoResponse');
__Message.Write('Result', TypeInfo(string), lResult, []);
__Message.Finalize;
finally
end;
end;
end.