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

            return(id);
        }
Exemplo n.º 2
0
 public static SourceInstanceDto GetDtoSourceInstanceFromUcSourceInstance(UcSourceInstance UcSourceInstance)
 {
     return(new SourceInstanceDto
     {
         Id = UcSourceInstance.SourceInstanceId,
         SourceId = UcSourceInstance.SourceId,
         WallId = UcSourceInstance.WallId,
         X = UcSourceInstance.X,
         Y = UcSourceInstance.Y,
         Width = UcSourceInstance.Width,
         Height = UcSourceInstance.Height
     });
 }
Exemplo n.º 3
0
        public async Task <int> AddSourceInstance(UcSourceInstance sourceInstance)
        {
            int id = await HubProxy.Invoke <int>("AddSourceInstance", SourceInstanceMapper.GetDtoSourceInstanceFromUcSourceInstance(sourceInstance));

            return(id);
        }