예제 #1
0
        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);
        }
예제 #2
0
 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;
     }
 }
예제 #3
0
 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);
     }
 }
예제 #4
0
 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;
     }
 }