protected override IMonitorEntity_MsgTgt CreateMonitorTarget(IMonitorEntity parent, IFreeformEntity_MsgTgt request) { FFTgt_G2H_GVA_TSSlotID_Request tgtSrc = request as FFTgt_G2H_GVA_TSSlotID_Request; if (tgtSrc != null) { MonTgt_G2H_GVA_TSSlotID_Request tgtDest = new MonTgt_G2H_GVA_TSSlotID_Request(); return(tgtDest); } return(null); }
public override void GetTargetData(IFreeformEntity_MsgTgt tgt, ref List <byte> buffer) { if (tgt is FFTgt_G2H_GVA_TSSlotID_Status) { FFTgt_G2H_GVA_TSSlotID_Status tgt2 = tgt as FFTgt_G2H_GVA_TSSlotID_Status; buffer.Add(tgt2.Status.GetGmuIdInt8()); } else { FFTgt_G2H_GVA_TSSlotID_Request tgt2 = tgt as FFTgt_G2H_GVA_TSSlotID_Request; } }
internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer) { if (buffer.Length == 1) { FFTgt_G2H_GVA_TSSlotID_Status tgt = new FFTgt_G2H_GVA_TSSlotID_Status(); tgt.Status = buffer[0].GetAppId <FF_GmuId_ResponseStatus_Types, FF_AppId_ResponseStatus_Types>(); return(tgt); } else { FFTgt_G2H_GVA_TSSlotID_Request tgt = new FFTgt_G2H_GVA_TSSlotID_Request(); return(tgt); } }
internal override IFreeformEntity ParseBufferInternal(ref IFreeformEntity entity, IFreeformEntity rootEntity, int id, byte[] buffer) { if (buffer.Length == 1) { FFTgt_G2H_GVA_TSSlotID_Status tgt = new FFTgt_G2H_GVA_TSSlotID_Status(); tgt.Status = buffer[0].GetAppId<FF_GmuId_ResponseStatus_Types, FF_AppId_ResponseStatus_Types>(); return tgt; } else { FFTgt_G2H_GVA_TSSlotID_Request tgt = new FFTgt_G2H_GVA_TSSlotID_Request(); return tgt; } }