コード例 #1
0
        public CreateOrUpdateProfileSenderResponse CreateOrUpdateProfileSender(CreateOrUpdateProfileSenderRequest createOrUpdateProfileSenderRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.CreateOrUpdateProfileSender(agent, createOrUpdateProfileSenderRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
コード例 #2
0
 public CreateOrUpdateProfileSenderData(CreateOrUpdateProfileSenderRequest createOrUpdateProfileRequest)
 {
     Request = createOrUpdateProfileRequest;
 }
コード例 #3
0
 public virtual async Task <CreateOrUpdateProfileSenderResponse> CreateOrUpdateProfileSenderAsync(Agent agent, CreateOrUpdateProfileSenderRequest createOrUpdateProfileSenderRequest)
 {
     return(await AgentConnect.CreateOrUpdateProfileSenderAsync(agent, createOrUpdateProfileSenderRequest));
 }
コード例 #4
0
 public virtual CreateOrUpdateProfileSenderResponse CreateOrUpdateProfileSender(Agent agent, CreateOrUpdateProfileSenderRequest createOrUpdateProfileSenderRequest)
 {
     return(AgentConnect.CreateOrUpdateProfileSender(agent, createOrUpdateProfileSenderRequest));
 }
コード例 #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);
        }
コード例 #6
0
        public IHttpActionResult CreateOrUpdateProfileSender(CreateOrUpdateProfileSenderRequest req)
        {
            var createOrUpdateProfileSender = _business.CreateOrUpdateProfileSender(req);

            return(Ok(createOrUpdateProfileSender));
        }
コード例 #7
0
 public override CreateOrUpdateProfileSenderResponse CreateOrUpdateProfileSender(Agent agent,
                                                                                 CreateOrUpdateProfileSenderRequest createOrUpdateProfileSenderRequest)
 {
     if (agent.IsInTrainingMode)
     {
         return(_traingModeRepository.MockCreateOrUpdateProfileSender());
     }
     return(base.CreateOrUpdateProfileSender(agent, createOrUpdateProfileSenderRequest));
 }