public CreateOrUpdateProfileSenderResponse CreateOrUpdateProfileSender(CreateOrUpdateProfileSenderRequest createOrUpdateProfileSenderRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.CreateOrUpdateProfileSender(agent, createOrUpdateProfileSenderRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
 public CreateOrUpdateProfileSenderData(CreateOrUpdateProfileSenderRequest createOrUpdateProfileRequest)
 {
     Request = createOrUpdateProfileRequest;
 }
Esempio n. 3
0
 public virtual async Task <CreateOrUpdateProfileSenderResponse> CreateOrUpdateProfileSenderAsync(Agent agent, CreateOrUpdateProfileSenderRequest createOrUpdateProfileSenderRequest)
 {
     return(await AgentConnect.CreateOrUpdateProfileSenderAsync(agent, createOrUpdateProfileSenderRequest));
 }
Esempio n. 4
0
 public virtual CreateOrUpdateProfileSenderResponse CreateOrUpdateProfileSender(Agent agent, CreateOrUpdateProfileSenderRequest createOrUpdateProfileSenderRequest)
 {
     return(AgentConnect.CreateOrUpdateProfileSender(agent, createOrUpdateProfileSenderRequest));
 }
Esempio n. 5
0
        public AcApiResponse <CreateOrUpdateProfileSenderResponse, ApiData> CreateOrUpdateProfileSender(CreateOrUpdateProfileSenderRequest req)
        {
            var resp = _agentConnectIntegration.CreateOrUpdateProfileSender(req);

            var apiResp = new AcApiResponse <CreateOrUpdateProfileSenderResponse, ApiData>
            {
                BusinessMetadata = MapperHelper.SetResponseProperties(resp.Payload?.Flags, DataSource.AgentConnect),
                ResponseData     = resp
            };

            return(apiResp);
        }
        public IHttpActionResult CreateOrUpdateProfileSender(CreateOrUpdateProfileSenderRequest req)
        {
            var createOrUpdateProfileSender = _business.CreateOrUpdateProfileSender(req);

            return(Ok(createOrUpdateProfileSender));
        }
Esempio n. 7
0
 public override CreateOrUpdateProfileSenderResponse CreateOrUpdateProfileSender(Agent agent,
                                                                                 CreateOrUpdateProfileSenderRequest createOrUpdateProfileSenderRequest)
 {
     if (agent.IsInTrainingMode)
     {
         return(_traingModeRepository.MockCreateOrUpdateProfileSender());
     }
     return(base.CreateOrUpdateProfileSender(agent, createOrUpdateProfileSenderRequest));
 }