コード例 #1
0
 private static FFMsg_H2G WrapMessageAndReturnH2G(string ipAddress, FF_AppId_H2G_PollCodes pollCode, FF_FlowInitiation flowInitiation, FFTgt_B2B_TicketInfoData data)
 {
     FFMsg_H2G msg = FreeformEntityFactory.CreateH2GMessage(ipAddress, pollCode,
         FF_AppId_SessionIds.Tickets, true,
         WrapTargetAndReturn(data));
     msg.FlowInitiation = flowInitiation;
     return msg;
 }
コード例 #2
0
 private static FFMsg_H2G WrapMessageAndReturnH2G(string ipAddress, FF_AppId_H2G_PollCodes pollCode, FF_FlowInitiation flowInitiation, FFTgt_B2B_GameMessage data)
 {
     FFMsg_H2G msg = FreeformEntityFactory.CreateH2GMessage(ipAddress, pollCode,
         FF_AppId_SessionIds.GameMessage, false,
         data);
     msg.FlowInitiation = flowInitiation;
     return msg;
 }
コード例 #3
0
        private static FFMsg_H2G WrapMessageAndReturnH2G(string ipAddress, FF_AppId_H2G_PollCodes pollCode, FF_FlowInitiation flowInitiation, FFTgt_B2B_GameMessage data)
        {
            FFMsg_H2G msg = FreeformEntityFactory.CreateH2GMessage(ipAddress, pollCode,
                                                                   FF_AppId_SessionIds.GameMessage, false,
                                                                   data);

            msg.FlowInitiation = flowInitiation;
            return(msg);
        }
コード例 #4
0
 public MonTgtParserMappingH2GAttribute(FF_FlowDirection direction,
                                        Type monitorTargetType,
                                        int faultSource,
                                        int faultType,
                                        FF_AppId_H2G_PollCodes pollCode,
                                        FF_AppId_SessionIds sessionID)
     : this(direction, null, monitorTargetType, faultSource, faultType, pollCode, sessionID)
 {
 }
コード例 #5
0
        private static FFMsg_H2G WrapMessageAndReturnH2G(string ipAddress, FF_AppId_H2G_PollCodes pollCode, FF_FlowInitiation flowInitiation, FFTgt_B2B_TicketInfoData data)
        {
            FFMsg_H2G msg = FreeformEntityFactory.CreateH2GMessage(ipAddress, pollCode,
                                                                   FF_AppId_SessionIds.Tickets, true,
                                                                   WrapTargetAndReturn(data));

            msg.FlowInitiation = flowInitiation;
            return(msg);
        }
コード例 #6
0
 private static FFMsg_H2G WrapMessageAndReturnH2G(string ipAddress, FF_AppId_H2G_PollCodes pollCode,
     FF_FlowInitiation flowInitiation, bool isSecured, FFTgt_B2B_EFT_Data data)
 {
     FFTgt_B2B_EFT eft = WrapTargetAndReturn(data);
     FFMsg_H2G msg = FreeformEntityFactory.CreateH2GMessage(ipAddress, pollCode,
         FF_AppId_SessionIds.ECash, true,
         (isSecured ? WrapTargetAndReturnSecured(data) : WrapTargetAndReturn(data)));
     msg.FlowInitiation = flowInitiation;
     return msg;
 }
コード例 #7
0
        private static FFMsg_H2G WrapMessageAndReturnH2G(string ipAddress, FF_AppId_H2G_PollCodes pollCode,
                                                         FF_FlowInitiation flowInitiation, bool isSecured, FFTgt_B2B_EFT_Data data)
        {
            FFTgt_B2B_EFT eft = WrapTargetAndReturn(data);
            FFMsg_H2G     msg = FreeformEntityFactory.CreateH2GMessage(ipAddress, pollCode,
                                                                       FF_AppId_SessionIds.ECash, true,
                                                                       (isSecured ? WrapTargetAndReturnSecured(data) : WrapTargetAndReturn(data)));

            msg.FlowInitiation = flowInitiation;
            return(msg);
        }
コード例 #8
0
 public FFMsg_H2G CreateH2GMessage(string ipAddress, FF_AppId_SessionIds sessionId,
                                   FF_AppId_H2G_PollCodes pollCode)
 {
     return(FreeformEntityFactory.CreateEntity <FFMsg_H2G>(FF_FlowDirection.H2G,
                                                           new FFCreateEntityRequest_H2G()
     {
         IPAddress = ipAddress,
         PollCode = pollCode,
         SessionID = sessionId,
         TransactionID = this.TransactionIDNew,
     }));
 }
コード例 #9
0
 public MonTgtParserMappingH2GAttribute(FF_FlowDirection direction,
                                        Type freeformTargetType,
                                        Type monitorTargetType,
                                        int faultSource,
                                        int faultType,
                                        FF_AppId_H2G_PollCodes pollCode,
                                        FF_AppId_SessionIds sessionID)
     : base(direction, freeformTargetType, monitorTargetType, faultSource, faultType)
 {
     this.PollCode  = pollCode;
     this.SessionID = sessionID;
 }
コード例 #10
0
        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            // get and verify the pollCode
            FF_AppId_H2G_PollCodes pollCode = buffer[FreeformConstants.IDX_SEND_POLLCODE].GetAppId <FF_GmuId_H2G_PollCodes, FF_AppId_H2G_PollCodes>();

            if (pollCode == FF_AppId_H2G_PollCodes.None)
            {
                Log.Warning("Invalid message passed (Invalid pollCode)");
                return(null);
            }

            // create the entity and parse
            int iPollCode = (int)pollCode;

            entity = this.GetParserFromAppId(iPollCode).ParseBuffer(rootEntity, buffer);

            // valid message
            return(entity);
        }
コード例 #11
0
        public static FFMsg_H2G CreateH2GMessage(string ipAddress, FF_AppId_H2G_PollCodes pollcode,
                                                 FF_AppId_SessionIds sessionId, bool isResponseRequired,
                                                 params IFreeformEntity_MsgTgt[] targets)
        {
            FFMsg_H2G msg = FreeformEntityFactory.CreateEntity <FFMsg_H2G>(FF_FlowDirection.H2G,
                                                                           new FFCreateEntityRequest_H2G_ResponseRequired()
            {
                PollCode           = pollcode,
                SessionID          = sessionId,
                IPAddress          = ipAddress,
                SkipTransactionId  = true,
                IsResponseRequired = isResponseRequired,
            });

            if (targets != null)
            {
                msg.AddTargets(targets);
            }
            return(msg);
        }
コード例 #12
0
 private static FFMsg_H2G WrapMessageAndReturnH2G(string ipAddress, FF_AppId_H2G_PollCodes pollCode, FFTgt_B2B_TicketInfoData data)
 {
     return(WrapMessageAndReturnH2G(ipAddress, pollCode, FF_FlowInitiation.Any, data));
 }
コード例 #13
0
 private static FFMsg_H2G WrapMessageAndReturnH2G(string ipAddress, FF_AppId_H2G_PollCodes pollCode, bool isSecured, FFTgt_B2B_EFT_Data data)
 {
     return(WrapMessageAndReturnH2G(ipAddress, pollCode, FF_FlowInitiation.Any, isSecured, data));
 }
コード例 #14
0
 private static FFMsg_H2G WrapMessageAndReturnH2G(string ipAddress, FF_AppId_H2G_PollCodes pollCode, FFTgt_B2B_GameMessage data)
 {
     return WrapMessageAndReturnH2G(ipAddress, pollCode, FF_FlowInitiation.Any, data);
 }
コード例 #15
0
 public static FFMsg_H2G CreateH2GMessage(string ipAddress, FF_AppId_H2G_PollCodes pollcode,
                                          FF_AppId_SessionIds sessionId,
                                          params IFreeformEntity_MsgTgt[] targets)
 {
     return(CreateH2GMessage(ipAddress, pollcode, sessionId, false, targets));
 }
コード例 #16
0
 public MonTgtParserMappingH2GAttribute(FF_FlowDirection direction,
                                         Type freeformTargetType,
                                         Type monitorTargetType,
                                         int faultSource,
                                         int faultType,
                                         FF_AppId_H2G_PollCodes pollCode,
                                         FF_AppId_SessionIds sessionID)
     : base(direction, freeformTargetType, monitorTargetType, faultSource, faultType)
 {
     this.PollCode = pollCode;
     this.SessionID = sessionID;
 }
コード例 #17
0
 private static FFMsg_H2G WrapMessageAndReturnH2G(string ipAddress, FF_AppId_H2G_PollCodes pollCode, bool isSecured, FFTgt_B2B_EFT_Data data)
 {
     return WrapMessageAndReturnH2G(ipAddress, pollCode, FF_FlowInitiation.Any, isSecured, data);
 }
コード例 #18
0
 public MonTgtParserMappingH2GAttribute(FF_FlowDirection direction,
                                         Type monitorTargetType,
                                         int faultSource,
                                         int faultType,
                                         FF_AppId_H2G_PollCodes pollCode,
                                         FF_AppId_SessionIds sessionID)
     : this(direction, null, monitorTargetType, faultSource, faultType, pollCode, sessionID) { }
コード例 #19
0
 public FFMsg_H2G CreateH2GMessage(string ipAddress, FF_AppId_SessionIds sessionId,
     FF_AppId_H2G_PollCodes pollCode)
 {
     return FreeformEntityFactory.CreateEntity<FFMsg_H2G>(FF_FlowDirection.H2G,
         new FFCreateEntityRequest_H2G()
         {
             IPAddress = ipAddress,
             PollCode = pollCode,
             SessionID = sessionId,
             TransactionID = this.TransactionIDNew,
         });
 }