Exemplo n.º 1
0
 /// <summary>
 /// Handler for an Order Proposals RPDE endpoint (separate to the open data endpoint for security) - string only version
 /// for uses in situations where the framework does not automatically validate numeric values
 /// </summary>
 /// <param name="clientId">Token designating the specific authenticated party for which the feed is intended</param>
 /// <param name="afterTimestamp">The "afterTimestamp" parameter from the URL</param>
 /// <param name="afterId">The "afterId" parameter from the URL</param>
 /// <param name="afterChangeNumber">The "afterChangeNumber" parameter from the URL</param>
 /// <returns></returns>
 public async Task <ResponseContent> GetOrderProposalsRPDEPageForFeed(string clientId, string afterTimestamp, string afterId, string afterChangeNumber)
 {
     return(ResponseContent.OrdersFeedRpdeResponse(
                (await GetOrderProposalsRPDEPageForFeed(
                     clientId,
                     RpdeOrderingStrategyRouter.ConvertStringToLongOrThrow(afterTimestamp, nameof(afterTimestamp)),
                     afterId,
                     RpdeOrderingStrategyRouter.ConvertStringToLongOrThrow(afterChangeNumber, nameof(afterChangeNumber))
                     )).ToString()));
 }
 /// <summary>
 /// Handler for an Orders RPDE endpoint (separate to the open data endpoint for security) - string only version
 /// Designed to be used on a single controller method with a "feedname" parameter,
 /// for uses in situations where the framework does not automatically validate numeric values
 /// </summary>
 /// <param name="authtoken">Token designating the specific authenticated party for which the feed is intended</param>
 /// <param name="afterTimestamp">The "afterTimestamp" parameter from the URL</param>
 /// <param name="afterId">The "afterId" parameter from the URL</param>
 /// <param name="afterChangeNumber">The "afterChangeNumber" parameter from the URL</param>
 /// <returns></returns>
 public ResponseContent GetOrdersRPDEPageForFeed(string clientId, string afterTimestamp, string afterId, string afterChangeNumber)
 {
     return(ResponseContent.RpdeResponse(
                RenderOrdersRPDEPageForFeed(
                    clientId,
                    RpdeOrderingStrategyRouter.ConvertStringToLongOrThrow(afterTimestamp, nameof(afterTimestamp)),
                    afterId,
                    RpdeOrderingStrategyRouter.ConvertStringToLongOrThrow(afterChangeNumber, nameof(afterChangeNumber))
                    ).ToString()));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Handler for an RPDE endpoint - string only version
 /// Designed to be used on a single controller method with a "feedname" parameter,
 /// for uses in situations where the framework does not automatically validate numeric values
 /// </summary>
 /// <param name="feedname">The final component of the path of the feed, i.e. https://example.com/feeds/{feedname} </param>
 /// <param name="afterTimestamp">The "afterTimestamp" parameter from the URL</param>
 /// <param name="afterId">The "afterId" parameter from the URL</param>
 /// <param name="afterChangeNumber">The "afterChangeNumber" parameter from the URL</param>
 /// <returns></returns>
 public async Task <ResponseContent> GetOpenDataRPDEPageForFeed(string feedname, string afterTimestamp, string afterId, string afterChangeNumber)
 {
     return(ResponseContent.RpdeResponse(
                (await RouteOpenDataRPDEPageForFeed(
                     feedname,
                     RpdeOrderingStrategyRouter.ConvertStringToLongOrThrow(afterTimestamp, nameof(afterTimestamp)),
                     afterId,
                     RpdeOrderingStrategyRouter.ConvertStringToLongOrThrow(afterChangeNumber, nameof(afterChangeNumber))
                     )).ToString()));
 }