本文整理汇总了C#中IFreeformEntity_MsgTgt类的典型用法代码示例。如果您正苦于以下问题:C# IFreeformEntity_MsgTgt类的具体用法?C# IFreeformEntity_MsgTgt怎么用?C# IFreeformEntity_MsgTgt使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IFreeformEntity_MsgTgt类属于命名空间,在下文中一共展示了IFreeformEntity_MsgTgt类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: GetTargetData
public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List<byte> buffer)
{
FFTgt_G2H_TicketSeqNoUpdate tgt2 = tgt as FFTgt_G2H_TicketSeqNoUpdate;
buffer.SetBCDValue(tgt2.Barcode, 9);
buffer.SetValue(tgt2.Error.GetGmuIdInt8());
buffer.SetValue(tgt2.GameTicketSequence, 2);
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:TicketSequenceNumber.cs
示例2: CreateMonitorTarget
protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
{
FFTgt_G2H_GameMessage_SASCommand ffTgt = request as FFTgt_G2H_GameMessage_SASCommand;
IMonitorEntity_MsgTgt tgtDest = null;
if (ffTgt != null)
{
FF_AppId_LongPollCodes cmd = (FF_AppId_LongPollCodes)ffTgt.LongPollCommand;
switch (cmd)
{
case FF_AppId_LongPollCodes.LPC_MachineEnable:
tgtDest = new MonTgt_G2H_Client_EnableMachine()
{
FaultType = (int)FaultType_LongPollCode.LPC_EnableMachine,
};
break;
case FF_AppId_LongPollCodes.LPC_MachineDisable:
tgtDest = new MonTgt_G2H_Client_DisableMachine()
{
FaultType = (int)FaultType_LongPollCode.LPC_DisableMachine,
};
break;
default:
break;
}
}
return tgtDest;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:30,代码来源:LongPollCommand.cs
示例3: GetTargetData
public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List<byte> buffer)
{
FFTgt_G2H_Ticket_Printed_Request tgt2 = tgt as FFTgt_G2H_Ticket_Printed_Request;
buffer.SetBCDValue(tgt2.BarCode, 9);
buffer.SetBCDValue(tgt2.Amount, 4);
buffer.SetValue(tgt2.Type.GetGmuIdInt8());
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:TicketPrinted.cs
示例4: GetTargetData
public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List<byte> buffer)
{
FFTgt_H2G_Ticket_Redemption_Response tgt2 = tgt as FFTgt_H2G_Ticket_Redemption_Response;
buffer.SetBCDValue(tgt2.Barcode, 9);
buffer.SetBCDValue(tgt2.Amount, 4);
buffer.SetValue(tgt2.Type.GetGmuIdInt8());
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:7,代码来源:TicketRedemption.cs
示例5: GetTargetData
public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List<byte> buffer)
{
FFTgt_G2H_EFT_DepositRequest tgt2 = tgt as FFTgt_G2H_EFT_DepositRequest;
buffer.SetBCDValue(tgt2.NonCashableAmount, 4);
buffer.SetBCDValue(tgt2.CashableAmount, 4);
buffer.SetBCDValue(tgt2.PlayerCardNumber, 5);
buffer.SetBCDValue(tgt2.Pin, 2);
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:8,代码来源:Deposit.cs
示例6: GetTargetData
public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List<byte> buffer)
{
FFTgt_G2H_EFT_WithdrawalRequest tgt2 = tgt as FFTgt_G2H_EFT_WithdrawalRequest;
buffer.Add(tgt2.AccountType.GetGmuIdInt8());
buffer.SetBCDValue(tgt2.AmountRequested, 4);
buffer.SetBCDValue(tgt2.PlayerCardNumber, 5);
buffer.SetBCDValue(tgt2.Pin, 2);
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:8,代码来源:Withdrawal.cs
示例7: OnProcessMessageH2GExternal_SIM
protected override bool OnProcessMessageH2GExternal_SIM(FFTgtExecutionContext context, IFreeformEntity_MsgTgt target)
{
FFTgt_H2G_Ticket_Redemption_Response tgtSrc = target as FFTgt_H2G_Ticket_Redemption_Response;
FF_AppId_TicketRedemption_Close_Status status = (tgtSrc.Amount > 0 ? FF_AppId_TicketRedemption_Close_Status.Success : FF_AppId_TicketRedemption_Close_Status.CouponRejectedbySystem);
context.FreeformTargets.Add(TicketsHelper.RedeemTicketComplete(context.SourceMessage.IpAddress,
tgtSrc.Barcode, tgtSrc.Amount, tgtSrc.Type, status));
return true;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:8,代码来源:TicketRedeemHandler_SIM.cs
示例8: GetTargetData
public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List<byte> buffer)
{
FFTgt_H2G_GVA_EFT_Withdraw_Response tgt2 = tgt as FFTgt_H2G_GVA_EFT_Withdraw_Response;
buffer.AddRange(tgt2.WithdrawalAmount_option1.GetBCDToBytes(4));
buffer.AddRange(tgt2.WithdrawalAmount_option2.GetBCDToBytes(4));
buffer.AddRange(tgt2.WithdrawalAmount_option3.GetBCDToBytes(4));
buffer.AddRange(tgt2.WithdrawalAmount_option4.GetBCDToBytes(4));
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:8,代码来源:EftWithdraw.cs
示例9: GetTargetData
public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List<byte> buffer)
{
FFTgt_H2G_EFT_BalanceResponse tgt2 = tgt as FFTgt_H2G_EFT_BalanceResponse;
buffer.SetBCDValue(tgt2.PlayerCardNumber, 5);
buffer.AddRange(tgt2.PlayerFlags.BytesValue);
buffer.Add((byte)tgt2.DisplayMessageLength);
buffer.AddRange(tgt2.DisplayMessage.GetASCIIBytesValue(tgt2.DisplayMessageLength));
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:8,代码来源:Balance.cs
示例10: OnProcessMessageG2HExternal_GMU
protected override bool OnProcessMessageG2HExternal_GMU(FFTgtExecutionContext context, IFreeformEntity_MsgTgt target)
{
FFTgt_G2H_Ticket_Printed_Request tgtSrc = target as FFTgt_G2H_Ticket_Printed_Request;
using (TicketIDInfo idInfo = new TicketIDInfo(tgtSrc.BarCode))
{
tgtSrc.SequenceNo = idInfo.SequenceNumber;
}
return base.OnProcessMessageG2HExternal_GMU(context, target);
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:9,代码来源:TicketPrintedHandler.cs
示例11: CreateMonitorTarget
protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent,
IFreeformEntity_MsgTgt request)
{
FFTgt_G2H_GMUEvent_StdData tgtSrc = request as FFTgt_G2H_GMUEvent_StdData;
if (tgtSrc != null)
{
return this.CreateMonitorStatusTarget(tgtSrc);
}
return null;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:10,代码来源:StatusBlock.cs
示例12: CreateMonitorTarget
protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
{
FFTgt_G2H_Max_OLT_Allowed_Req tgtSrc = request as FFTgt_G2H_Max_OLT_Allowed_Req;
if (tgtSrc != null)
{
MonTgt_G2H_GVA_MOT_Request tgtDest = new MonTgt_G2H_GVA_MOT_Request();
return tgtDest;
}
return null;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:10,代码来源:MaxOfflineTicket.cs
示例13: CreateMonitorTarget
protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
{
FFTgt_G2H_GVA_EFT_MaxWithdraw_Request tgtSrc = request as FFTgt_G2H_GVA_EFT_MaxWithdraw_Request;
if (tgtSrc != null)
{
MonTgt_G2H_GVA_EFTMaxWithdraw_Request tgtDest = new MonTgt_G2H_GVA_EFTMaxWithdraw_Request();
return tgtDest;
}
return null;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:10,代码来源:EftMaxWithdraw.cs
示例14: CreateMonitorTarget
protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
{
FFTgt_G2H_GVA_OfflineT_TxtLine2_Req tgtSrc = request as FFTgt_G2H_GVA_OfflineT_TxtLine2_Req;
if (tgtSrc != null)
{
MonTgt_G2H_GVA_OfflineT_TxtLine2_Req tgtDest = new MonTgt_G2H_GVA_OfflineT_TxtLine2_Req();
return tgtDest;
}
return null;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:10,代码来源:TicketOfflineText.cs
示例15: CreateMonitorTarget
protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
{
FFTgt_G2H_TPD tgtSrc = request as FFTgt_G2H_TPD;
if (tgtSrc != null)
{
MonTgt_G2H_GVA_TicketPrintDate_Request tgtDest = new MonTgt_G2H_GVA_TicketPrintDate_Request();
return tgtDest;
}
return null;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:10,代码来源:TicketPrintDate.cs
示例16: GetTargetData
public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List<byte> buffer)
{
FFTgt_G2H_GIM_GameIDInfo tgt2 = tgt as FFTgt_G2H_GIM_GameIDInfo;
this.AddTargetToBuffer(ref buffer, (int)FF_GmuId_GIM_GameIDInfoTags.GMUGameNumber, tgt2.GMUNumber.GetASCIIBytesValue());
this.AddTargetToBuffer(ref buffer, (int)FF_GmuId_GIM_GameIDInfoTags.GameGameNumber, tgt2.AssetNumber.GetASCIIBytesValue());
this.AddTargetToBuffer(ref buffer, (int)FF_GmuId_GIM_GameIDInfoTags.ManufacturerID, tgt2.ManufacturerID.GetHexBytesValue(2));
this.AddTargetToBuffer(ref buffer, (int)FF_GmuId_GIM_GameIDInfoTags.SerialNumber, tgt2.SerialNumber.GetASCIIBytesValue());
this.AddTargetToBuffer(ref buffer, (int)FF_GmuId_GIM_GameIDInfoTags.MACAddress, tgt2.MACAddress.GetMACAddressBytesValue());
this.AddTargetToBuffer(ref buffer, (int)FF_GmuId_GIM_GameIDInfoTags.SASVersion, tgt2.SASVersion.GetASCIIBytesValue());
this.AddTargetToBuffer(ref buffer, (int)FF_GmuId_GIM_GameIDInfoTags.GMUVersion, tgt2.GMUVersion.GetASCIIBytesValue());
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:11,代码来源:GameIDInfo.cs
示例17: OnProcessMessageG2HInternal_GMU
protected override bool OnProcessMessageG2HInternal_GMU(FFTgtExecutionContext context, IFreeformEntity_MsgTgt target)
{
FFTgt_B2B_GMUVarAction tgtDest = new FFTgt_B2B_GMUVarAction()
{
ActionData = new FFTgt_H2G_GVA_TPD_Response()
{
Date = DateTime.Now,
}
};
context.FreeformTargets.Add(tgtDest);
return true;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:12,代码来源:TicketPrintDateHandler.cs
示例18: GetTargetData
public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List<byte> buffer)
{
if (tgt is FFTgt_G2H_GVA_TimeOfDay_Status)
{
FFTgt_G2H_GVA_TimeOfDay_Status tgt2 = tgt as FFTgt_G2H_GVA_TimeOfDay_Status;
buffer.Add(tgt2.Status.GetGmuIdInt8());
}
else
{
FFTgt_G2H_GVA_TimeOfDay_Request tgt2 = tgt as FFTgt_G2H_GVA_TimeOfDay_Request;
}
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:12,代码来源:TimeOfDay.cs
示例19: CreateMonitorTarget
protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
{
FFTgt_G2H_TicketingEnablement ffTgt = request as FFTgt_G2H_TicketingEnablement;
if (ffTgt == null) return null;
MonTgt_G2H_TicketingEnablement monTgt = new MonTgt_G2H_TicketingEnablement()
{
Status = ffTgt.Status,
};
return monTgt;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:12,代码来源:TicketingEnablement.cs
示例20: CreateMonitorTarget
protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request)
{
FFTgt_G2H_Ticket_Redemption_Request tgtSrc = request as FFTgt_G2H_Ticket_Redemption_Request;
if (tgtSrc != null)
{
MonTgt_G2H_Ticket_Redemption_Request tgtDest = new MonTgt_G2H_Ticket_Redemption_Request()
{
Barcode = tgtSrc.Barcode,
};
return tgtDest;
}
return null;
}
开发者ID:sreenandini,项目名称:test_buildscripts,代码行数:13,代码来源:TicketRedemption.cs
注:本文中的IFreeformEntity_MsgTgt类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论