public CircleOverlayEntry ToDomainModel()
        {
            var domain = new CircleOverlayEntry();

            BaseOverlayEntryJsModel.MapBasePropertiesToDomainModel(domain, this);

            domain.Center = this.Center;
            domain.Size   = this.Size;

            return(domain);
        }
        public CameraOverlayEntry ToDomainModel()
        {
            var domain = new CameraOverlayEntry();

            BaseOverlayEntryJsModel.MapBasePropertiesToDomainModel(domain, this);

            domain.Points          = this.Points;
            domain.TransformMatrix = this.TransformMatrix;

            return(domain);
        }
Exemplo n.º 3
0
        public ZoneOverlayEntry ToDomainModel()
        {
            var domain = new ZoneOverlayEntry();

            BaseOverlayEntryJsModel.MapBasePropertiesToDomainModel(domain, this);

            domain.Points        = this.Points;
            domain.Alias         = this.Alias;
            domain.MetadataSetId = this.MetadataSetId != null?HyperDocumentId.Create <HyperMetadataSet>(this.MetadataSetId) : (HyperDocumentId?)null;

            domain.FixedCameraEnhancementId = this.FixedCameraEnhancementId != null?HyperDocumentId.Create <FixedCameraEnhancedData>(this.FixedCameraEnhancementId) : (HyperDocumentId?)null;

            domain.View = this.View;
            return(domain);
        }