Пример #1
0
        public void SaveProfilePrinter(SaveProfilePrinterRequest request)
        {
            request.ThrowIfNull(nameof(request));

            SaveProfile(new SaveProfileRequest
            {
                UnitProfileID         = request.UnitProfileID,
                AgentID               = request.AgentID,
                AgentSequence         = request.AgentSequence,
                Language              = request.Language,
                MgiSessionID          = request.MgiSessionID,
                TimeStamp             = request.TimeStamp,
                ClientSoftwareVersion = request.ClientSoftwareVersion,
                PoeType               = request.PoeType,
                ChannelType           = request.ChannelType,
                OperatorName          = request.OperatorName,
                TargetAudience        = request.TargetAudience,
                PoeCapabilities       = request.PoeCapabilities,
                ProductProfileItems   = new List <ProductProfileItemType>
                {
                    new ProductProfileItemType
                    {
                        Index = 0,
                        Key   = "AGENT_PRINTER_NAME",
                        Value = request.PrinterName
                    }
                }
            });
        }
Пример #2
0
        public IHttpActionResult SaveProfilePrinter([FromBody] SaveProfilePrinterRequest request)
        {
            request.ThrowIfNull(nameof(request));

            _profileBusiness.SaveProfilePrinter(request);

            return(Ok());
        }