Example #1
0
        public void ApplyClientData(ClientDataBase clientEntity)
        {
            var cti = clientEntity as ClientDataModel.TrackableItemState;

            this.Name        = cti.Name;
            this.Description = cti.Description;
        }
Example #2
0
        /// <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());
            }
        }
Example #3
0
        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())));
        }
Example #4
0
 /// <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 { }
 }
Example #5
0
 public DownloadHelper(ClientDataBase client)
     : base(client)
 {
 }
Example #6
0
 public SessionCommandHelper(ClientDataBase client)
     : base(client)
 {
 }
Example #7
0
 public TransportHelper(ClientDataBase client)
     : base(client)
 {
 }
Example #8
0
 public ScreenshotHelper(ClientDataBase client)
     : base(client)
 {
 }
Example #9
0
 public CommandHelper(ClientDataBase client)
     : base(client)
 {
 }
Example #10
0
 public TaskListHelper(ClientDataBase client)
     : base(client)
 {
 }
Example #11
0
 public CameraHelper(ClientDataBase client)
     : base(client)
 {
 }
Example #12
0
 public HelperBase(ClientDataBase client)
 {
     Client = client;
     Client.Server.OnFrame += OnFrame;
 }
Example #13
0
 public FileSystemHelper(ClientDataBase client)
     : base(client)
 {
 }