Exemplo n.º 1
0
        public async Task <int> ModifySourceInstance(DcSourceInstance sourceInstance)
        {
            var sourceInstanceDto = SourceInstanceMapper.GetDtoSourceInstanceFromDcSourceInstance(sourceInstance);
            int id = await HubProxy.Invoke <int>("ModifySourceInstance", sourceInstanceDto);

            return(id);
        }
 public SourceInstanceArgs(DcSourceInstance sourceInstance)
 {
     this.SourceInstance = sourceInstance;
 }
Exemplo n.º 3
0
 public static Common.Data.Models.SourceInstanceDto GetDtoSourceInstanceFromDcSourceInstance(DcSourceInstance DcSourceInstance)
 {
     return(new Common.Data.Models.SourceInstanceDto
     {
         Id = DcSourceInstance.SourceInstanceId,
         SourceId = DcSourceInstance.SourceId,
         WallId = DcSourceInstance.WallId,
         X = DcSourceInstance.X,
         Y = DcSourceInstance.Y,
         Width = DcSourceInstance.Width,
         Height = DcSourceInstance.Height
     });
 }
Exemplo n.º 4
0
        /// <summary>
        /// Occurs when a source is dropped on a wall. Tells the server a new source was added
        /// </summary>
        /// <param name="args"></param>
        private async void OnDroppedOn(SourceDropArgs args)
        {
            DcSourceInstance sourceInstance = new DcSourceInstance(args.Source, this.SpaceSession.DigitalWall.WallId, (int)args.DropPoint.X, (int)args.DropPoint.Y, args.Source.DefaultWidth, args.Source.DefaultHeight);

            await this._signalrProxy.AddSourceInstance(sourceInstance);
        }
Exemplo n.º 5
0
        public async Task <int> AddSourceInstance(DcSourceInstance sourceInstance)
        {
            int id = await HubProxy.Invoke <int>("AddSourceInstance", SourceInstanceMapper.GetDtoSourceInstanceFromDcSourceInstance(sourceInstance));

            return(id);
        }