Пример #1
0
 public void SendAircraftConfiguration(string to, AircraftConfiguration config)
 {
     if (FSD.Connected)
     {
         AircraftConfigurationInfo aircraftConfigurationInfo = new AircraftConfigurationInfo
         {
             Config = config
         };
         FSD.SendPDU(new PDUClientQuery(OurCallsign, to, ClientQueryType.AircraftConfiguration, new List <string>
         {
             aircraftConfigurationInfo.ToJson()
         }));
     }
 }
Пример #2
0
 public void SendIncrementalAircraftConfigurationUpdate(AircraftConfiguration config)
 {
     if (FSD.Connected)
     {
         AircraftConfigurationInfo aircraftConfigurationInfo = new AircraftConfigurationInfo
         {
             Config = config
         };
         FSD.SendPDU(new PDUClientQuery(OurCallsign, "@94836", ClientQueryType.AircraftConfiguration, new List <string>
         {
             aircraftConfigurationInfo.ToJson()
         }));
     }
 }
Пример #3
0
 public void RequestFullAircraftConfiguration(string to)
 {
     if (FSD.Connected)
     {
         AircraftConfigurationInfo aircraftConfigurationInfo = new AircraftConfigurationInfo
         {
             Request = new AircraftConfigurationInfo.RequestType?(AircraftConfigurationInfo.RequestType.Full)
         };
         FSD.SendPDU(new PDUClientQuery(OurCallsign, to, ClientQueryType.AircraftConfiguration, new List <string>
         {
             aircraftConfigurationInfo.ToJson()
         }));
     }
 }