/// <summary>/// Create a new task querying charge detail records from the OICP server./// </summary>/// <param name="ProviderId">The unique identification of the EVSP.</param></param>/// <param name="From">The starting time.</param></param>/// <param name="To">The end time.</param></param>/// <param name="QueryTimeout">An optional timeout for this query.</param></param>publicasyncTask<HTTPResponse<IEnumerable<eRoamingChargeDetailRecord>>>GetChargeDetailRecords(EVSP_IdProviderId,DateTimeFrom,DateTimeTo,TimeSpan?QueryTimeout=null){ [...]}
varHubjectEMP=newEMPClient("api.playground.hubject.com");Task.Factory.StartNew(async()=>{varresult=awaitHubjectEMP.GetChargeDetailRecords(EVSP_Id.Parse("DE*GDF"),newDateTime(2015,10,1),newDateTime(2015,10,31));Console.WriteLine(result.Content.Count()+" charge detail records found!");});
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.