本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例8: CreateBufferInternal
internal override byte[] CreateBufferInternal(IFreeformEntity entity)
{
if (entity is IFreeformEntity_MsgTgt)
return _targetParser.ParseEntity(entity);
else
return _messageParser.ParseEntity(entity);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}