コード例 #1
0
 public static Nme2WsAdmin.MissionObject MissionObjectToAdmin(Nme2Ws.MissionObject nonAdminObject)
 {
     return new MissionObject(){Active = nonAdminObject.Active, Altitude = nonAdminObject.Altitude, Bank = nonAdminObject.Bank,
     Heading = nonAdminObject.Heading, Id = nonAdminObject.Id, Lat = nonAdminObject.Lat, Lon = nonAdminObject.Lon,
     Mission_Id = nonAdminObject.Mission_Id, OnGround = nonAdminObject.OnGround, Pitch = nonAdminObject.Pitch,
     SimObject_Id = nonAdminObject.SimObject_Id, Yaw = nonAdminObject.Yaw};
 }
コード例 #2
0
ファイル: MissionConverter.cs プロジェクト: bergziege/NME2
 public static Nme2WsAdmin.Mission MissionToAdmin(Nme2Ws.Mission nonAdminObject)
 {
     return new Mission(){Active = nonAdminObject.Active, CenterLat = nonAdminObject.CenterLat,
     CenterLon = nonAdminObject.CenterLon,Id = nonAdminObject.Id,Name = nonAdminObject.Name,
     MissionRange = nonAdminObject.MissionRange, Version = nonAdminObject.Version};
 }