コード例 #1
0
        public List <RoviMessageCarrier> GetRoviMessagesForAssetsSince(List <long> assetIds, DateTime since, string menuId, string menuItemCode)
        {
            EventMenuFilter menuFilter = new EventMenuFilter()
            {
                EntityIds = assetIds, MenuId = menuId, MenuItemCode = menuItemCode
            };
            IHttpRestRequest request = GetRequest(APIControllerRoutes.LoggableDataController.GETROVIMESSAGESFORASSETSSINCE, HttpMethod.Post);

            request.AddUrlSegment("since", since.ToString(DataFormats.DateTime_Format));
            request.AddJsonBody(menuFilter);
            IHttpRestResponse <List <RoviMessageCarrier> > response = Execute <List <RoviMessageCarrier> >(request);

            return(response.Data);
        }
コード例 #2
0
        public async Task <List <RoviMessageCarrier> > GetRoviMessagesForAssetsLatestAsync(List <long> assetIds, byte count, string menuId, string menuItemCode)
        {
            EventMenuFilter menuFilter = new EventMenuFilter()
            {
                EntityIds = assetIds, MenuId = menuId, MenuItemCode = menuItemCode
            };
            IHttpRestRequest request = GetRequest(APIControllerRoutes.LoggableDataController.GETROVIMESSAGESFORASSETSLATEST, HttpMethod.Post);

            request.AddUrlSegment("count", count.ToString());
            request.AddJsonBody(menuFilter);
            IHttpRestResponse <List <RoviMessageCarrier> > response = await ExecuteAsync <List <RoviMessageCarrier> >(request).ConfigureAwait(false);

            return(response.Data);
        }
コード例 #3
0
        public List <LoggableDataCarrier> GetLoggableDataForAssetsByDateRange(List <long> assetIds, DateTime fromDate, DateTime toDate, string menuId, string menuItemCode)
        {
            EventMenuFilter menuFilter = new EventMenuFilter()
            {
                EntityIds = assetIds, MenuId = menuId, MenuItemCode = menuItemCode
            };
            IHttpRestRequest request = GetRequest(APIControllerRoutes.LoggableDataController.GETLOGGABLEDATAFORASSETSBYDATERANGE, HttpMethod.Post);

            request.AddUrlSegment("from", fromDate.ToString(DataFormats.DateTime_Format));
            request.AddUrlSegment("to", toDate.ToString(DataFormats.DateTime_Format));
            request.AddJsonBody(menuFilter);
            IHttpRestResponse <List <LoggableDataCarrier> > response = Execute <List <LoggableDataCarrier> >(request);

            return(response.Data);
        }
コード例 #4
0
        public async Task <List <RoviMessageCarrier> > GetRoviMessagesForAssetsByDateRangeAsync(List <long> assetIds, DateTime fromDate, DateTime toDate, string menuId, string menuItemCode)
        {
            EventMenuFilter menuFilter = new EventMenuFilter()
            {
                EntityIds = assetIds, MenuId = menuId, MenuItemCode = menuItemCode
            };
            IHttpRestRequest request = GetRequest(APIControllerRoutes.LoggableDataController.GETROVIMESSAGESFORASSETSBYDATERANGE, HttpMethod.Post);

            request.AddUrlSegment("from", fromDate.ToString(DataFormats.DateTime_Format));
            request.AddUrlSegment("to", toDate.ToString(DataFormats.DateTime_Format));
            request.AddJsonBody(menuFilter);
            IHttpRestResponse <List <RoviMessageCarrier> > response = await ExecuteAsync <List <RoviMessageCarrier> >(request).ConfigureAwait(false);

            return(response.Data);
        }