Plane.Sdk3/PlaneGcsSdk_Shared/CopterManagement/CopterFactory.cs
2017-02-27 02:02:19 +08:00

35 lines
778 B
C#

using Plane.Copters;
using System;
using System.Threading;
namespace Plane.CopterManagement
{
public partial class CopterFactory : ICopterFactory
{
private SynchronizationContext _uiSyncContext;
public CopterFactory(SynchronizationContext uiSyncContext)
{
_uiSyncContext = uiSyncContext;
}
#if !NETFX_CORE
public ICopter CreateBluetoothCopter(string hostName, string name = "GHOSTDRONE")
{
throw new NotImplementedException();
}
#endif
public IFakeCopter CreateFakeCopter(string id = "FakeCopter", string name = "Linjq's Drone")
{
return new FakeCopter
{
Id = id,
Name = name
};
}
}
}