当前位置: 首页>>代码示例>>C#>>正文


C# IFreeformEntity类代码示例

本文整理汇总了C#中IFreeformEntity的典型用法代码示例。如果您正苦于以下问题:C# IFreeformEntity类的具体用法?C# IFreeformEntity怎么用?C# IFreeformEntity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IFreeformEntity类属于命名空间,在下文中一共展示了IFreeformEntity类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ParseBufferInternal

 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_H2G_CodeDownload_ChangeVersion tgt = new FFTgt_H2G_CodeDownload_ChangeVersion();
     tgt.NewVersion = FreeformHelper.GetASCIIStringValue(buffer, 0, 7);
     tgt.OldVersion = FreeformHelper.GetASCIIStringValue(buffer, 7, 7);
     return tgt;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:ChangeVersion.cs

示例2: ParseBufferInternal

 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_Roulette tgt = new FFTgt_G2H_Roulette();
     entity = tgt;
     this.ParseBuffer(tgt, rootEntity, buffer, 0, buffer.Length);
     return tgt;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:Roulette.cs

示例3: ParseBufferInternal

 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_H2G_LP_ForcePeriodic tgt = new FFTgt_H2G_LP_ForcePeriodic();
     tgt.Data1 = buffer[0];
     tgt.Data2 = buffer[1];
     return tgt;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:ForcePeriodic.cs

示例4: ParseBufferInternal

     internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_B2B_GMUVarAction tgt = new FFTgt_B2B_GMUVarAction();
     entity = tgt;
     this.ParseBuffer(tgt, rootEntity, buffer, 0, buffer.Length);
     return tgt;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:GMUVariableAction.cs

示例5: ParseBufferInternal

 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_GMUEvent_TicketData tgt = new FFTgt_G2H_GMUEvent_TicketData();
     tgt.BarcodeNumber = FreeformHelper.GetBytesToBCDDouble(buffer, 0, 9);
     tgt.ErrorCode = FreeformHelper.GetBytesToNumberUInt8(buffer, 9, 1);
     return tgt;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:Ticket.cs

示例6: ParseBufferInternal

 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_H2G_GVA_EFT_Char_Response tgt = new FFTgt_H2G_GVA_EFT_Char_Response();
     // Check wih Vinoth For Adding Boolean
   
     return tgt;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:EftChar.cs

示例7: ParseBufferInternal

 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_GMUEvent_EFTData tgt = new FFTgt_G2H_GMUEvent_EFTData();
     tgt.TransactionID = buffer[0];
     tgt.ErrorCode = buffer[1];
     return tgt;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:EFT.cs

示例8: CreateBufferInternal

 internal override byte[] CreateBufferInternal(IFreeformEntity entity)
 {
     if (entity is IFreeformEntity_MsgTgt)
         return _targetParser.ParseEntity(entity);
     else
         return _messageParser.ParseEntity(entity);
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:FFactory_Generic.cs

示例9: ParseBufferInternal

 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_EFT_BalanceRequest tgt = new FFTgt_G2H_EFT_BalanceRequest();
     tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5);
     tgt.Pin = FreeformHelper.GetBCDValueString(buffer, 0, 5, 2);
     return tgt;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:Balance.cs

示例10: ParseBufferInternal

 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_H2G_GIM_AuxNetworkEnableDisable tgt = new FFTgt_H2G_GIM_AuxNetworkEnableDisable();
     tgt.EnableDisable = buffer[0].ConvertToBoolean();
     tgt.Display = FreeformHelper.GetASCIIStringValue(buffer, 1, 0);
     return tgt;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:AuxNetworkEnableDisable.cs

示例11: ParseBufferInternal

 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_B2B_Security_BMCAuthentication tgt = new FFTgt_B2B_Security_BMCAuthentication();
     tgt.AuthenticationByte = buffer[0];
     tgt.EntityData = FreeformHelper.CopyToBuffer(buffer, 1, buffer.Length);//want to decrypt
     return tgt;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:BMCAuthentication.cs

示例12: ParseBufferInternal

        internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
        {
            FF_AppId_SystemToEPI_MessageTypes messageType = (FF_AppId_SystemToEPI_MessageTypes)buffer[0];
            FFTgt_H2G_SystemToEPI_Data tgt = null;

            switch (messageType)
            {

                case FF_AppId_SystemToEPI_MessageTypes.TicketPrint:
                    tgt = new FFTgt_H2G_SystemToEPI_TicketPrint();
                    break;
                case FF_AppId_SystemToEPI_MessageTypes.TicketRedeem:
                    tgt = new FFTgt_H2G_SystemToEPI_TicketRedeem();
                    break;
                case FF_AppId_SystemToEPI_MessageTypes.TicketError:
                    tgt = new FFTgt_H2G_SystemToEPI_TicketError();
                    break;
                case FF_AppId_SystemToEPI_MessageTypes.Promo:
                    tgt = new FFTgt_H2G_SystemToEPI_Promo();
                    break;
                case FF_AppId_SystemToEPI_MessageTypes.Sports:
                    tgt = new FFTgt_H2G_SystemToEPI_Sports();
                    break;
                case FF_AppId_SystemToEPI_MessageTypes.F5:
                    tgt = new FFTgt_H2G_SystemToEPI_F5();
                    break;

            }
            tgt.TextLength = buffer[1];
            tgt.Text = FreeformHelper.GetASCIIStringValue(FreeformHelper.CopyToBuffer(buffer, 2, buffer.Length - 2));
            return tgt;

        }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:33,代码来源:SystemToEPI.cs

示例13: ParseBufferInternal

 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_TicketAttribute tgt = new FFTgt_G2H_TicketAttribute();
     tgt.TicketPrintDateTime = buffer.GetBytesToBCDDateTime(0, 6);
     tgt.OfflineStatus = buffer[6].GetAppId<FF_GmuId_TicketOfflineStatus, FF_AppId_TicketOfflineStatus>();
     return tgt;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:TicketAttribute.cs

示例14: ParseBufferInternal

 internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
 {
     FFTgt_G2H_Ticket_Void tgt = new FFTgt_G2H_Ticket_Void();
     tgt.Barcode = buffer.GetBCDValueString(0, 0, 9);
     tgt.Error = buffer[9].GetAppId<FF_GmuId_TicketPrintStatus, FF_AppId_TicketPrintStatus>();         
     return tgt;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:TicketVoid.cs

示例15: CreateEntityInternal

 protected override IMonitorEntity CreateEntityInternal(IMonitorEntity parent, IFreeformEntity request)
 {
     IFreeformEntity_Msg msgFF = request as IFreeformEntity_Msg;
     IMonitorEntity_Msg msgMon = this.CreateMonitorMessage();
     msgMon.IpAddress = msgFF.IpAddress;
     return msgMon;
 }
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:MonMsgParser.cs


注:本文中的IFreeformEntity类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。