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

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