Exemple #1
0
        public ConsumerHistoryLookupData ConsumerHistoryLookup(string agentId, string agentPos, bool existing, SessionType tranType)
        {
            var consumerHistoryLookupData = new ConsumerHistoryLookupData();
            var request = existing ? ConsumerHistoryLookupRequestFactory.ConsumerHistoryLookupRequestExisting : ConsumerHistoryLookupRequestFactory.ConsumerHistoryLookupRequestNonExisting;

            request.AgentID       = agentId;
            request.AgentSequence = agentPos;
            consumerHistoryLookupData.Set(request);
            consumerHistoryLookupData.ConsumerHistoryLookupReq.MgiSessionType = tranType;
            consumerHistoryLookupData.Set(_acIntegration.ConsumerHistoryLookup(consumerHistoryLookupData.ConsumerHistoryLookupReq));

            return(consumerHistoryLookupData);
        }
Exemple #2
0
 public void Set(ConsumerHistoryLookupData consumerHistoryLookupData)
 {
     ConsumerHistoryLookup = consumerHistoryLookupData;
     SetExecutionOrder(nameof(ConsumerHistoryLookup));
 }