public FFMsg_G2H CreateG2HMessage(string ipAddress, FF_AppId_SessionIds sessionId, FF_AppId_G2H_Commands command, FF_AppId_G2H_MessageTypes messageType, int transactionId) { return FreeformEntityFactory.CreateEntity<FFMsg_G2H>(FF_FlowDirection.G2H, new FFCreateEntityRequest_G2H() { IPAddress = ipAddress, Command = command, MessageType = messageType, SessionID = sessionId, TransactionID = transactionId, }); }
public FFMsg_G2H CreateG2HMessage(string ipAddress, FF_AppId_SessionIds sessionId, FF_AppId_G2H_Commands command, FF_AppId_G2H_MessageTypes messageType, int transactionId) { return(FreeformEntityFactory.CreateEntity <FFMsg_G2H>(FF_FlowDirection.G2H, new FFCreateEntityRequest_G2H() { IPAddress = ipAddress, Command = command, MessageType = messageType, SessionID = sessionId, TransactionID = transactionId, })); }
public static FFMsg_G2H CreateG2HMessage(string ipAddress, FF_AppId_G2H_Commands command, FF_AppId_G2H_MessageTypes messageType, FF_AppId_SessionIds sessionId, bool isResponseRequired, params IFreeformEntity_MsgTgt[] targets) { FFMsg_G2H msg = FreeformEntityFactory.CreateEntity <FFMsg_G2H>(FF_FlowDirection.G2H, new FFCreateEntityRequest_G2H_ResponseRequired() { Command = command, MessageType = messageType, SessionID = sessionId, IPAddress = ipAddress, SkipTransactionId = true, IsResponseRequired = isResponseRequired, }); if (targets != null) { msg.AddTargets(targets); } return(msg); }
public static FFMsg_G2H CreateG2HMessage(string ipAddress, FF_AppId_G2H_Commands command, FF_AppId_G2H_MessageTypes messageType, FF_AppId_SessionIds sessionId, params IFreeformEntity_MsgTgt[] targets) { return(CreateG2HMessage(ipAddress, command, messageType, sessionId, false, targets)); }