本文整理汇总了C#中IFreeformEntity类的典型用法代码示例。如果您正苦于以下问题:C# IFreeformEntity类的具体用法?C# IFreeformEntity怎么用?C# IFreeformEntity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IFreeformEntity类属于命名空间,在下文中一共展示了IFreeformEntity类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: ParseBufferInternal
internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
{
FFTgt_G2H_EFT_Phishing tgt = new FFTgt_G2H_EFT_Phishing();
tgt.PlayerCardNumber = FreeformHelper.GetBCDValueString(buffer, 0, 0, 5);
tgt.Type = buffer[5];
return tgt;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:Phishing.cs
示例17: ParseBufferInternal
internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
{
FFTgt_B2B_Security_Indexed_KeyExchange_End tgt = new FFTgt_B2B_Security_Indexed_KeyExchange_End();
tgt.KeyIndex = (FF_AppId_KeyExchange)buffer[0];
tgt.Key = FreeformHelper.CopyToBuffer(buffer, 1, 9);
return tgt;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:IndexKeyExchange.cs
示例18: ParseBufferInternal
internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
{
FFTgt_G2H_GMUEvent_PrinterData tgt = new FFTgt_G2H_GMUEvent_PrinterData();
tgt.ActionID = buffer[0];
tgt.StatusCode = buffer[1].GetAppId<FF_GmuId_GMUEvent_PrinterStatusCodes, FF_AppId_GMUEvent_PrinterStatusCodes>();
return tgt;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:Printer.cs
示例19: ParseBufferInternal
internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer)
{
byte[] buffer2 = FreeformEntityFactory.EncryptionFactory.Decrypt(rootEntity as IFreeformEntity_Msg, buffer);
return new FFTgt_B2B_Encrypted()
{
DecryptedData = buffer2,
};
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:8,代码来源:Encrypted.cs
示例20: ParseBufferInternal
internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, byte[] buffer)
{
FFTgt_B2B_GIM tgt = new FFTgt_B2B_GIM();
entity = tgt;
tgt.SubTargetID = (FF_GIM_SubTargets)buffer[0];
this.ParseBuffer(entity, buffer, 0, 0);
return tgt;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:8,代码来源:GIM.cs
注:本文中的IFreeformEntity类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论