Пример #1
0
        /// <summary>
        /// Gets the transport document states since.
        /// </summary>
        /// <returns>Task.</returns>
        public async Task GetTransportDocumentStatesSince()
        {
            DateTime?date = ConsoleApp.AskDateTime("Retrieve the document states changed since (yyyy-MM-ddTHH:mm:ss) ");

            if (date.HasValue)
            {
                var states = await this.client.GetAsync <TransportDocumentReturnState[]>($"{this.oauthSettings.BaseUrl}/api/v2/transportdocuments/states?since={date.Value:s}&page=1&size=10");

                DumpStates(states);
            }
        }
Пример #2
0
        /// <summary>
        /// Gets the transport document states since.
        /// </summary>
        /// <returns>Task.</returns>
        public async Task GetTransportDocumentStatesSince()
        {
            DateTime?date = ConsoleApp.AskDateTime("Retrieve the document states changed since (yyyy-MM-ddTHH:mm:ss) ");

            if (date.HasValue)
            {
                var states = await this.soapClient.GetTransportDocumentStateSinceAsync(date.Value, 1, 10);

                DumpStates(states);
            }
        }