public void ApplyClientData(ClientDataBase clientEntity) { var cti = clientEntity as ClientDataModel.TrackableItemState; this.Name = cti.Name; this.Description = cti.Description; }
/// <summary> /// 向给定客户端发送帧。 /// </summary> /// <exception cref="Exception"></exception> public override async Task Send(ClientDataBase client, FrameBase frame) { await base.Send(client, frame).ConfigureAwait(false); if (Common.Configs.Debug) { Console.WriteLine("S >" + frame.GetType().ToString()); } }
public void ApplyClientData(ClientDataBase clientEntity) { var cti = clientEntity as ClientDataModel.TrackableItem; this.Description = cti.Description; this.IsSecured = cti.IsSecured; this.Name = cti.Name; this.SupportsGeolocationServices = cti.SupportsGeolocationServices; this.SupportsUserInformation = cti.SupportsUserInformation; this.States.ToList().ForEach(x => x.ApplyClientData(cti.States.FirstOrDefault(s => s.Id == x.Id.ToString()))); }
/// <summary> /// 收到新帧,通过过滤器后的帧会添加到Answers中。 /// </summary> /// <param name="client"></param> /// <param name="frame"></param> protected void OnFrame(ClientDataBase client, FrameBase frame) { try { if (client == Client && GuidFilter == frame.Guid) { Answers.Release(frame); } } catch { } }
public DownloadHelper(ClientDataBase client) : base(client) { }
public SessionCommandHelper(ClientDataBase client) : base(client) { }
public TransportHelper(ClientDataBase client) : base(client) { }
public ScreenshotHelper(ClientDataBase client) : base(client) { }
public CommandHelper(ClientDataBase client) : base(client) { }
public TaskListHelper(ClientDataBase client) : base(client) { }
public CameraHelper(ClientDataBase client) : base(client) { }
public HelperBase(ClientDataBase client) { Client = client; Client.Server.OnFrame += OnFrame; }
public FileSystemHelper(ClientDataBase client) : base(client) { }