예제 #1
0
        /// <summary>
        /// With this request the client can query the statistic counter of an RFP.
        /// </summary>
        /// <param name="id">Unique RFP identifier. The numbering starts at 0</param>
        /// <param name="maxRecord">Maximal number of records to return. Not more than 20 allowed.
        /// If maxRecord is equal 0, only the record of the RFP addressed by id should be fetched</param>
        /// <param name="recordSet">Record set to read
        /// Record 0 identifies the overall counter, 1 the current week, 2 the week before the current week and so on.</param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        public Task <GetRFPStatisticResp> GetRFPStatisticAsync(int id, int maxRecord, int recordSet, CancellationToken cancellationToken)
        {
            var request = new GetRFPStatistic {
                Id = id, MaxRecords = maxRecord, RecordSet = recordSet
            };

            return(GetRFPStatisticAsync(request, cancellationToken));
        }
예제 #2
0
        public void CanSerializeGetRFPStatistic()
        {
            var getRFPStatistic = new GetRFPStatistic
            {
                Id         = 0,
                MaxRecords = 20,
                RecordSet  = 0
            };
            var xml = _serializer.Serialize(getRFPStatistic);

            Assert.AreEqual("<GetRFPStatistic id=\"0\" maxRecords=\"20\" recordSet=\"0\" />", xml);
        }
예제 #3
0
        public async Task <GetRFPStatisticResp> GetRFPStatisticAsync(GetRFPStatistic request, CancellationToken cancellationToken)
        {
            var response = await SendAsync <GetRFPStatistic, GetRFPStatisticResp>(request, cancellationToken).ConfigureAwait(false);

            return(response);
        }