kandi background
Explore Kits

Hilo | end HTML5 Game development solution developed by Alibaba | Game Engine library

 by   hiloteam JavaScript Version: 2.0.2 License: MIT

 by   hiloteam JavaScript Version: 2.0.2 License: MIT

Download this library from

kandi X-RAY | Hilo Summary

Hilo is a JavaScript library typically used in Telecommunications, Media, Media, Entertainment, Gaming, Game Engine applications. Hilo has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.
Hilo is a Cross-end HTML5 Game development solution developed by Alibaba Group. It could help developers build HTML5 games conveniently in minutes.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • Hilo has a medium active ecosystem.
  • It has 5678 star(s) with 863 fork(s). There are 318 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 25 open issues and 103 have been closed. On average issues are closed in 51 days. There are no pull requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of Hilo is 2.0.2
Hilo Support
Best in #Game Engine
Average in #Game Engine
Hilo Support
Best in #Game Engine
Average in #Game Engine

quality kandi Quality

  • Hilo has 0 bugs and 0 code smells.
Hilo Quality
Best in #Game Engine
Average in #Game Engine
Hilo Quality
Best in #Game Engine
Average in #Game Engine

securitySecurity

  • Hilo has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • Hilo code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
Hilo Security
Best in #Game Engine
Average in #Game Engine
Hilo Security
Best in #Game Engine
Average in #Game Engine

license License

  • Hilo is licensed under the MIT License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
Hilo License
Best in #Game Engine
Average in #Game Engine
Hilo License
Best in #Game Engine
Average in #Game Engine

buildReuse

  • Hilo releases are available to install and integrate.
  • Installation instructions are available. Examples and code snippets are not available.
  • Hilo saves you 67887 person hours of effort in developing the same functionality from scratch.
  • It has 76414 lines of code, 102 functions and 623 files.
  • It has high code complexity. Code complexity directly impacts maintainability of the code.
Hilo Reuse
Best in #Game Engine
Average in #Game Engine
Hilo Reuse
Best in #Game Engine
Average in #Game Engine
Top functions reviewed by kandi - BETA

kandi has reviewed Hilo and discovered the below as its top functions. This is intended to give you an instant insight into Hilo implemented functionality, and help decide if they suit your requirements.

  • Publishes the symbol set to publish .
    • Run animation
      • Handle the response
        • Main entry point .
          • Apply the response
            • Create a link .
              • handle the response
                • Clones an element .
                  • Checks the separation between polygons of polygons .
                    • Returns the CSS value of an element .

                      Get all kandi verified functions for this library.

                      Get all kandi verified functions for this library.

                      Hilo Key Features

                      independency modules design, support multiple module styles;

                      Object Oriented Programmed Development;

                      Simple and efficient Visual Object Architecture;

                      Multiple render model supported, including CanvasRenderer, DOMRenderer and WebGLRenderer;

                      Compatible for multiple desktop and mobile browsers. Using Flash Shim to support IE (yes as you can see, it support IE);

                      Physics extensions supported: Chipmunk

                      Skeleton animation extensions supported: DragonBones

                      Navbar with margin wont be set to "0"

                      copy iconCopydownload iconDownload
                      margin: 0 !important;
                      
                      html body nav {
                          margin: 20px;
                      }
                      
                      nav {
                          margin: 0;
                      }
                      
                      margin: 0 !important;
                      
                      html body nav {
                          margin: 20px;
                      }
                      
                      nav {
                          margin: 0;
                      }
                      
                      margin: 0 !important;
                      
                      html body nav {
                          margin: 20px;
                      }
                      
                      nav {
                          margin: 0;
                      }
                      

                      C# Json extract a list of values from a Json list or array

                      copy iconCopydownload iconDownload
                      var jsonObject = JObject.Parse(strFedExJSON); 
                      
                       var scanEventsJson= jsonObject["output"]["completeTrackResults"][0]["trackResults"][0] ["scanEvents"].ToString();
                      
                        {
                          "date": "2021-12-22T21:44:00-03:30",
                          "eventType": "DL",
                          "eventDescription": "Delivered",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HILO",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96720",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ITOA",
                          "locationType": "DELIVERY_LOCATION",
                          "derivedStatusCode": "DL",
                          "derivedStatus": "Delivered"
                        },
                        {
                          "date": "2021-12-22T21:10:00-03:30",
                          "eventType": "OD",
                          "eventDescription": "On FedEx vehicle for delivery",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HILO",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96720",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ITOA",
                          "locationType": "VEHICLE",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T21:07:00-03:30",
                          "eventType": "AR",
                          "eventDescription": "At local FedEx facility",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HILO",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96720",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ITOA",
                          "locationType": "DESTINATION_FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T14:05:00-03:30",
                          "eventType": "AR",
                          "eventDescription": "At destination sort facility",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HONOLULU",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96819",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "HNLR",
                          "locationType": "SORT_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T08:51:00-03:30",
                          "eventType": "DP",
                          "eventDescription": "Departed FedEx hub",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "OAKLAND",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "94621",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "OAKH",
                          "locationType": "FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T03:57:00-03:30",
                          "eventType": "AR",
                          "eventDescription": "Arrived at FedEx hub",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "OAKLAND",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "94621",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "OAKH",
                          "locationType": "FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-21T23:43:00-03:30",
                          "eventType": "DP",
                          "eventDescription": "Left FedEx origin facility",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "ONTARIO",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "91761",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ONTA",
                          "locationType": "ORIGIN_FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-21T22:42:00-03:30",
                          "eventType": "PU",
                          "eventDescription": "Picked up",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "ONTARIO",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "91761",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ONTA",
                          "locationType": "PICKUP_LOCATION",
                          "derivedStatusCode": "PU",
                          "derivedStatus": "Picked up"
                        },
                        {
                          "date": "2021-12-21T19:25:06-03:30",
                          "eventType": "OC",
                          "eventDescription": "Shipment information sent to FedEx",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "residential": false
                          },
                          "locationType": "CUSTOMER",
                          "derivedStatusCode": "IN",
                          "derivedStatus": "Initiated"
                        }
                      ]
                      
                      foreach (var completeTrackResult in jsonObject["output"]["completeTrackResults"])
                      {
                          foreach (var trackResult in completeTrackResult["trackResults"])
                          {
                              foreach (var scanEvent in trackResult["scanEvents"])
                              {
                                  Console.WriteLine(JsonConvert.SerializeObject(scanEvent) + "\n\r");
                              }
                          }
                      }
                      
                      {"date":"2021-12-22T21:44:00-03:30","eventType":"DL","eventDescription":"Delivered","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HILO","stateOrProvinceCode":"HI","postalCode":"96720","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ITOA","locationType":"DELIVERY_LOCATION","derivedStatusCode":"DL","derivedStatus":"Delivered"}
                      
                      {"date":"2021-12-22T21:10:00-03:30","eventType":"OD","eventDescription":"On FedEx vehicle for delivery","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HILO","stateOrProvinceCode":"HI","postalCode":"96720","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ITOA","locationType":"VEHICLE","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T21:07:00-03:30","eventType":"AR","eventDescription":"At local FedEx facility","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HILO","stateOrProvinceCode":"HI","postalCode":"96720","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ITOA","locationType":"DESTINATION_FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T14:05:00-03:30","eventType":"AR","eventDescription":"At destination sort facility","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HONOLULU","stateOrProvinceCode":"HI","postalCode":"96819","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"HNLR","locationType":"SORT_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T08:51:00-03:30","eventType":"DP","eventDescription":"Departed FedEx hub","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"OAKLAND","stateOrProvinceCode":"CA","postalCode":"94621","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"OAKH","locationType":"FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T03:57:00-03:30","eventType":"AR","eventDescription":"Arrived at FedEx hub","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"OAKLAND","stateOrProvinceCode":"CA","postalCode":"94621","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"OAKH","locationType":"FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-21T23:43:00-03:30","eventType":"DP","eventDescription":"Left FedEx origin facility","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"ONTARIO","stateOrProvinceCode":"CA","postalCode":"91761","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ONTA","locationType":"ORIGIN_FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-21T22:42:00-03:30","eventType":"PU","eventDescription":"Picked up","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"ONTARIO","stateOrProvinceCode":"CA","postalCode":"91761","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ONTA","locationType":"PICKUP_LOCATION","derivedStatusCode":"PU","derivedStatus":"Picked up"}
                      
                      {"date":"2021-12-21T19:25:06-03:30","eventType":"OC","eventDescription":"Shipment information sent to FedEx","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"residential":false},"locationType":"CUSTOMER","derivedStatusCode":"IN","derivedStatus":"Initiated"}
                      
                      var jsonObject = JObject.Parse(strFedExJSON); 
                      
                       var scanEventsJson= jsonObject["output"]["completeTrackResults"][0]["trackResults"][0] ["scanEvents"].ToString();
                      
                        {
                          "date": "2021-12-22T21:44:00-03:30",
                          "eventType": "DL",
                          "eventDescription": "Delivered",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HILO",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96720",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ITOA",
                          "locationType": "DELIVERY_LOCATION",
                          "derivedStatusCode": "DL",
                          "derivedStatus": "Delivered"
                        },
                        {
                          "date": "2021-12-22T21:10:00-03:30",
                          "eventType": "OD",
                          "eventDescription": "On FedEx vehicle for delivery",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HILO",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96720",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ITOA",
                          "locationType": "VEHICLE",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T21:07:00-03:30",
                          "eventType": "AR",
                          "eventDescription": "At local FedEx facility",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HILO",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96720",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ITOA",
                          "locationType": "DESTINATION_FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T14:05:00-03:30",
                          "eventType": "AR",
                          "eventDescription": "At destination sort facility",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HONOLULU",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96819",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "HNLR",
                          "locationType": "SORT_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T08:51:00-03:30",
                          "eventType": "DP",
                          "eventDescription": "Departed FedEx hub",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "OAKLAND",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "94621",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "OAKH",
                          "locationType": "FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T03:57:00-03:30",
                          "eventType": "AR",
                          "eventDescription": "Arrived at FedEx hub",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "OAKLAND",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "94621",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "OAKH",
                          "locationType": "FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-21T23:43:00-03:30",
                          "eventType": "DP",
                          "eventDescription": "Left FedEx origin facility",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "ONTARIO",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "91761",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ONTA",
                          "locationType": "ORIGIN_FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-21T22:42:00-03:30",
                          "eventType": "PU",
                          "eventDescription": "Picked up",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "ONTARIO",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "91761",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ONTA",
                          "locationType": "PICKUP_LOCATION",
                          "derivedStatusCode": "PU",
                          "derivedStatus": "Picked up"
                        },
                        {
                          "date": "2021-12-21T19:25:06-03:30",
                          "eventType": "OC",
                          "eventDescription": "Shipment information sent to FedEx",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "residential": false
                          },
                          "locationType": "CUSTOMER",
                          "derivedStatusCode": "IN",
                          "derivedStatus": "Initiated"
                        }
                      ]
                      
                      foreach (var completeTrackResult in jsonObject["output"]["completeTrackResults"])
                      {
                          foreach (var trackResult in completeTrackResult["trackResults"])
                          {
                              foreach (var scanEvent in trackResult["scanEvents"])
                              {
                                  Console.WriteLine(JsonConvert.SerializeObject(scanEvent) + "\n\r");
                              }
                          }
                      }
                      
                      {"date":"2021-12-22T21:44:00-03:30","eventType":"DL","eventDescription":"Delivered","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HILO","stateOrProvinceCode":"HI","postalCode":"96720","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ITOA","locationType":"DELIVERY_LOCATION","derivedStatusCode":"DL","derivedStatus":"Delivered"}
                      
                      {"date":"2021-12-22T21:10:00-03:30","eventType":"OD","eventDescription":"On FedEx vehicle for delivery","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HILO","stateOrProvinceCode":"HI","postalCode":"96720","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ITOA","locationType":"VEHICLE","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T21:07:00-03:30","eventType":"AR","eventDescription":"At local FedEx facility","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HILO","stateOrProvinceCode":"HI","postalCode":"96720","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ITOA","locationType":"DESTINATION_FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T14:05:00-03:30","eventType":"AR","eventDescription":"At destination sort facility","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HONOLULU","stateOrProvinceCode":"HI","postalCode":"96819","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"HNLR","locationType":"SORT_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T08:51:00-03:30","eventType":"DP","eventDescription":"Departed FedEx hub","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"OAKLAND","stateOrProvinceCode":"CA","postalCode":"94621","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"OAKH","locationType":"FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T03:57:00-03:30","eventType":"AR","eventDescription":"Arrived at FedEx hub","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"OAKLAND","stateOrProvinceCode":"CA","postalCode":"94621","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"OAKH","locationType":"FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-21T23:43:00-03:30","eventType":"DP","eventDescription":"Left FedEx origin facility","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"ONTARIO","stateOrProvinceCode":"CA","postalCode":"91761","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ONTA","locationType":"ORIGIN_FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-21T22:42:00-03:30","eventType":"PU","eventDescription":"Picked up","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"ONTARIO","stateOrProvinceCode":"CA","postalCode":"91761","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ONTA","locationType":"PICKUP_LOCATION","derivedStatusCode":"PU","derivedStatus":"Picked up"}
                      
                      {"date":"2021-12-21T19:25:06-03:30","eventType":"OC","eventDescription":"Shipment information sent to FedEx","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"residential":false},"locationType":"CUSTOMER","derivedStatusCode":"IN","derivedStatus":"Initiated"}
                      
                      var jsonObject = JObject.Parse(strFedExJSON); 
                      
                       var scanEventsJson= jsonObject["output"]["completeTrackResults"][0]["trackResults"][0] ["scanEvents"].ToString();
                      
                        {
                          "date": "2021-12-22T21:44:00-03:30",
                          "eventType": "DL",
                          "eventDescription": "Delivered",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HILO",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96720",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ITOA",
                          "locationType": "DELIVERY_LOCATION",
                          "derivedStatusCode": "DL",
                          "derivedStatus": "Delivered"
                        },
                        {
                          "date": "2021-12-22T21:10:00-03:30",
                          "eventType": "OD",
                          "eventDescription": "On FedEx vehicle for delivery",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HILO",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96720",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ITOA",
                          "locationType": "VEHICLE",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T21:07:00-03:30",
                          "eventType": "AR",
                          "eventDescription": "At local FedEx facility",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HILO",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96720",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ITOA",
                          "locationType": "DESTINATION_FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T14:05:00-03:30",
                          "eventType": "AR",
                          "eventDescription": "At destination sort facility",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HONOLULU",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96819",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "HNLR",
                          "locationType": "SORT_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T08:51:00-03:30",
                          "eventType": "DP",
                          "eventDescription": "Departed FedEx hub",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "OAKLAND",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "94621",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "OAKH",
                          "locationType": "FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T03:57:00-03:30",
                          "eventType": "AR",
                          "eventDescription": "Arrived at FedEx hub",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "OAKLAND",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "94621",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "OAKH",
                          "locationType": "FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-21T23:43:00-03:30",
                          "eventType": "DP",
                          "eventDescription": "Left FedEx origin facility",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "ONTARIO",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "91761",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ONTA",
                          "locationType": "ORIGIN_FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-21T22:42:00-03:30",
                          "eventType": "PU",
                          "eventDescription": "Picked up",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "ONTARIO",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "91761",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ONTA",
                          "locationType": "PICKUP_LOCATION",
                          "derivedStatusCode": "PU",
                          "derivedStatus": "Picked up"
                        },
                        {
                          "date": "2021-12-21T19:25:06-03:30",
                          "eventType": "OC",
                          "eventDescription": "Shipment information sent to FedEx",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "residential": false
                          },
                          "locationType": "CUSTOMER",
                          "derivedStatusCode": "IN",
                          "derivedStatus": "Initiated"
                        }
                      ]
                      
                      foreach (var completeTrackResult in jsonObject["output"]["completeTrackResults"])
                      {
                          foreach (var trackResult in completeTrackResult["trackResults"])
                          {
                              foreach (var scanEvent in trackResult["scanEvents"])
                              {
                                  Console.WriteLine(JsonConvert.SerializeObject(scanEvent) + "\n\r");
                              }
                          }
                      }
                      
                      {"date":"2021-12-22T21:44:00-03:30","eventType":"DL","eventDescription":"Delivered","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HILO","stateOrProvinceCode":"HI","postalCode":"96720","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ITOA","locationType":"DELIVERY_LOCATION","derivedStatusCode":"DL","derivedStatus":"Delivered"}
                      
                      {"date":"2021-12-22T21:10:00-03:30","eventType":"OD","eventDescription":"On FedEx vehicle for delivery","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HILO","stateOrProvinceCode":"HI","postalCode":"96720","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ITOA","locationType":"VEHICLE","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T21:07:00-03:30","eventType":"AR","eventDescription":"At local FedEx facility","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HILO","stateOrProvinceCode":"HI","postalCode":"96720","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ITOA","locationType":"DESTINATION_FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T14:05:00-03:30","eventType":"AR","eventDescription":"At destination sort facility","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HONOLULU","stateOrProvinceCode":"HI","postalCode":"96819","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"HNLR","locationType":"SORT_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T08:51:00-03:30","eventType":"DP","eventDescription":"Departed FedEx hub","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"OAKLAND","stateOrProvinceCode":"CA","postalCode":"94621","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"OAKH","locationType":"FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T03:57:00-03:30","eventType":"AR","eventDescription":"Arrived at FedEx hub","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"OAKLAND","stateOrProvinceCode":"CA","postalCode":"94621","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"OAKH","locationType":"FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-21T23:43:00-03:30","eventType":"DP","eventDescription":"Left FedEx origin facility","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"ONTARIO","stateOrProvinceCode":"CA","postalCode":"91761","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ONTA","locationType":"ORIGIN_FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-21T22:42:00-03:30","eventType":"PU","eventDescription":"Picked up","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"ONTARIO","stateOrProvinceCode":"CA","postalCode":"91761","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ONTA","locationType":"PICKUP_LOCATION","derivedStatusCode":"PU","derivedStatus":"Picked up"}
                      
                      {"date":"2021-12-21T19:25:06-03:30","eventType":"OC","eventDescription":"Shipment information sent to FedEx","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"residential":false},"locationType":"CUSTOMER","derivedStatusCode":"IN","derivedStatus":"Initiated"}
                      
                      var jsonObject = JObject.Parse(strFedExJSON); 
                      
                       var scanEventsJson= jsonObject["output"]["completeTrackResults"][0]["trackResults"][0] ["scanEvents"].ToString();
                      
                        {
                          "date": "2021-12-22T21:44:00-03:30",
                          "eventType": "DL",
                          "eventDescription": "Delivered",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HILO",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96720",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ITOA",
                          "locationType": "DELIVERY_LOCATION",
                          "derivedStatusCode": "DL",
                          "derivedStatus": "Delivered"
                        },
                        {
                          "date": "2021-12-22T21:10:00-03:30",
                          "eventType": "OD",
                          "eventDescription": "On FedEx vehicle for delivery",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HILO",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96720",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ITOA",
                          "locationType": "VEHICLE",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T21:07:00-03:30",
                          "eventType": "AR",
                          "eventDescription": "At local FedEx facility",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HILO",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96720",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ITOA",
                          "locationType": "DESTINATION_FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T14:05:00-03:30",
                          "eventType": "AR",
                          "eventDescription": "At destination sort facility",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "HONOLULU",
                            "stateOrProvinceCode": "HI",
                            "postalCode": "96819",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "HNLR",
                          "locationType": "SORT_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T08:51:00-03:30",
                          "eventType": "DP",
                          "eventDescription": "Departed FedEx hub",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "OAKLAND",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "94621",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "OAKH",
                          "locationType": "FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-22T03:57:00-03:30",
                          "eventType": "AR",
                          "eventDescription": "Arrived at FedEx hub",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "OAKLAND",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "94621",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "OAKH",
                          "locationType": "FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-21T23:43:00-03:30",
                          "eventType": "DP",
                          "eventDescription": "Left FedEx origin facility",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "ONTARIO",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "91761",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ONTA",
                          "locationType": "ORIGIN_FEDEX_FACILITY",
                          "derivedStatusCode": "IT",
                          "derivedStatus": "In transit"
                        },
                        {
                          "date": "2021-12-21T22:42:00-03:30",
                          "eventType": "PU",
                          "eventDescription": "Picked up",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "city": "ONTARIO",
                            "stateOrProvinceCode": "CA",
                            "postalCode": "91761",
                            "countryCode": "US",
                            "residential": false,
                            "countryName": "United States"
                          },
                          "locationId": "ONTA",
                          "locationType": "PICKUP_LOCATION",
                          "derivedStatusCode": "PU",
                          "derivedStatus": "Picked up"
                        },
                        {
                          "date": "2021-12-21T19:25:06-03:30",
                          "eventType": "OC",
                          "eventDescription": "Shipment information sent to FedEx",
                          "exceptionCode": "",
                          "exceptionDescription": "",
                          "scanLocation": {
                            "streetLines": [
                              ""
                            ],
                            "residential": false
                          },
                          "locationType": "CUSTOMER",
                          "derivedStatusCode": "IN",
                          "derivedStatus": "Initiated"
                        }
                      ]
                      
                      foreach (var completeTrackResult in jsonObject["output"]["completeTrackResults"])
                      {
                          foreach (var trackResult in completeTrackResult["trackResults"])
                          {
                              foreach (var scanEvent in trackResult["scanEvents"])
                              {
                                  Console.WriteLine(JsonConvert.SerializeObject(scanEvent) + "\n\r");
                              }
                          }
                      }
                      
                      {"date":"2021-12-22T21:44:00-03:30","eventType":"DL","eventDescription":"Delivered","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HILO","stateOrProvinceCode":"HI","postalCode":"96720","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ITOA","locationType":"DELIVERY_LOCATION","derivedStatusCode":"DL","derivedStatus":"Delivered"}
                      
                      {"date":"2021-12-22T21:10:00-03:30","eventType":"OD","eventDescription":"On FedEx vehicle for delivery","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HILO","stateOrProvinceCode":"HI","postalCode":"96720","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ITOA","locationType":"VEHICLE","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T21:07:00-03:30","eventType":"AR","eventDescription":"At local FedEx facility","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HILO","stateOrProvinceCode":"HI","postalCode":"96720","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ITOA","locationType":"DESTINATION_FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T14:05:00-03:30","eventType":"AR","eventDescription":"At destination sort facility","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"HONOLULU","stateOrProvinceCode":"HI","postalCode":"96819","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"HNLR","locationType":"SORT_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T08:51:00-03:30","eventType":"DP","eventDescription":"Departed FedEx hub","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"OAKLAND","stateOrProvinceCode":"CA","postalCode":"94621","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"OAKH","locationType":"FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-22T03:57:00-03:30","eventType":"AR","eventDescription":"Arrived at FedEx hub","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"OAKLAND","stateOrProvinceCode":"CA","postalCode":"94621","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"OAKH","locationType":"FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-21T23:43:00-03:30","eventType":"DP","eventDescription":"Left FedEx origin facility","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"ONTARIO","stateOrProvinceCode":"CA","postalCode":"91761","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ONTA","locationType":"ORIGIN_FEDEX_FACILITY","derivedStatusCode":"IT","derivedStatus":"In transit"}
                      
                      {"date":"2021-12-21T22:42:00-03:30","eventType":"PU","eventDescription":"Picked up","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"city":"ONTARIO","stateOrProvinceCode":"CA","postalCode":"91761","countryCode":"US","residential":false,"countryName":"United States"},"locationId":"ONTA","locationType":"PICKUP_LOCATION","derivedStatusCode":"PU","derivedStatus":"Picked up"}
                      
                      {"date":"2021-12-21T19:25:06-03:30","eventType":"OC","eventDescription":"Shipment information sent to FedEx","exceptionCode":"","exceptionDescription":"","scanLocation":{"streetLines":[""],"residential":false},"locationType":"CUSTOMER","derivedStatusCode":"IN","derivedStatus":"Initiated"}
                      
                      // <auto-generated />
                      //
                      // To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
                      //
                      //    using HackyTracky;
                      //
                      //    var trackyThing = TrackyThing.FromJson(jsonString);
                      
                      namespace HackyTracky
                      {
                          using System;
                          using System.Collections.Generic;
                      
                          using System.Globalization;
                          using Newtonsoft.Json;
                          using Newtonsoft.Json.Converters;
                      
                          public partial class TrackyThing
                          {
                              [JsonProperty("transactionId")]
                              public Guid TransactionId { get; set; }
                      
                              [JsonProperty("output")]
                              public Output Output { get; set; }
                          }
                      
                          public partial class Output
                          {
                              [JsonProperty("completeTrackResults")]
                              public CompleteTrackResult[] CompleteTrackResults { get; set; }
                          }
                      
                          public partial class CompleteTrackResult
                          {
                              [JsonProperty("trackingNumber")]
                              public string TrackingNumber { get; set; }
                      
                              [JsonProperty("trackResults")]
                              public TrackResult[] TrackResults { get; set; }
                          }
                      
                          public partial class TrackResult
                          {
                              [JsonProperty("trackingNumberInfo")]
                              public TrackingNumberInfo TrackingNumberInfo { get; set; }
                      
                              [JsonProperty("additionalTrackingInfo")]
                              public AdditionalTrackingInfo AdditionalTrackingInfo { get; set; }
                      
                              [JsonProperty("shipperInformation")]
                              public Information ShipperInformation { get; set; }
                      
                              [JsonProperty("recipientInformation")]
                              public Information RecipientInformation { get; set; }
                      
                              [JsonProperty("latestStatusDetail")]
                              public LatestStatusDetail LatestStatusDetail { get; set; }
                      
                              [JsonProperty("dateAndTimes")]
                              public DateAndTime[] DateAndTimes { get; set; }
                      
                              [JsonProperty("availableImages")]
                              public AvailableImage[] AvailableImages { get; set; }
                      
                              [JsonProperty("specialHandlings")]
                              public SpecialHandling[] SpecialHandlings { get; set; }
                      
                              [JsonProperty("packageDetails")]
                              public PackageDetails PackageDetails { get; set; }
                      
                              [JsonProperty("shipmentDetails")]
                              public ShipmentDetails ShipmentDetails { get; set; }
                      
                              [JsonProperty("scanEvents")]
                              public ScanEvent[] ScanEvents { get; set; }
                      
                              [JsonProperty("availableNotifications")]
                              public string[] AvailableNotifications { get; set; }
                      
                              [JsonProperty("deliveryDetails")]
                              public DeliveryDetails DeliveryDetails { get; set; }
                      
                              [JsonProperty("originLocation")]
                              public OriginLocation OriginLocation { get; set; }
                      
                              [JsonProperty("destinationLocation")]
                              public DestinationLocation DestinationLocation { get; set; }
                      
                              [JsonProperty("lastUpdatedDestinationAddress")]
                              public LastUpdatedDestinationAddress LastUpdatedDestinationAddress { get; set; }
                      
                              [JsonProperty("serviceDetail")]
                              public ServiceDetail ServiceDetail { get; set; }
                      
                              [JsonProperty("standardTransitTimeWindow")]
                              public StandardTransitTimeWindow StandardTransitTimeWindow { get; set; }
                      
                              [JsonProperty("estimatedDeliveryTimeWindow")]
                              public EstimatedDeliveryTimeWindow EstimatedDeliveryTimeWindow { get; set; }
                      
                              [JsonProperty("goodsClassificationCode")]
                              public string GoodsClassificationCode { get; set; }
                      
                              [JsonProperty("returnDetail")]
                              public ReturnDetail ReturnDetail { get; set; }
                          }
                      
                          public partial class AdditionalTrackingInfo
                          {
                              [JsonProperty("nickname")]
                              public string Nickname { get; set; }
                      
                              [JsonProperty("packageIdentifiers")]
                              public PackageIdentifier[] PackageIdentifiers { get; set; }
                      
                              [JsonProperty("hasAssociatedShipments")]
                              public bool HasAssociatedShipments { get; set; }
                          }
                      
                          public partial class PackageIdentifier
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("values")]
                              public string[] Values { get; set; }
                      
                              [JsonProperty("trackingNumberUniqueId")]
                              public string TrackingNumberUniqueId { get; set; }
                      
                              [JsonProperty("carrierCode")]
                              public string CarrierCode { get; set; }
                          }
                      
                          public partial class AvailableImage
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                          }
                      
                          public partial class DateAndTime
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("dateTime")]
                              public DateTimeOffset DateTime { get; set; }
                          }
                      
                          public partial class DeliveryDetails
                          {
                              [JsonProperty("actualDeliveryAddress")]
                              public LastUpdatedDestinationAddress ActualDeliveryAddress { get; set; }
                      
                              [JsonProperty("locationType")]
                              public string LocationType { get; set; }
                      
                              [JsonProperty("locationDescription")]
                              public string LocationDescription { get; set; }
                      
                              [JsonProperty("deliveryAttempts")]
                              [JsonConverter(typeof(ParseStringConverter))]
                              public long DeliveryAttempts { get; set; }
                      
                              [JsonProperty("receivedByName")]
                              public string ReceivedByName { get; set; }
                      
                              [JsonProperty("deliveryOptionEligibilityDetails")]
                              public DeliveryOptionEligibilityDetail[] DeliveryOptionEligibilityDetails { get; set; }
                          }
                      
                          public partial class LastUpdatedDestinationAddress
                          {
                              [JsonProperty("city")]
                              public string City { get; set; }
                      
                              [JsonProperty("stateOrProvinceCode")]
                              public string StateOrProvinceCode { get; set; }
                      
                              [JsonProperty("countryCode")]
                              public string CountryCode { get; set; }
                      
                              [JsonProperty("residential")]
                              public bool Residential { get; set; }
                      
                              [JsonProperty("countryName")]
                              public string CountryName { get; set; }
                          }
                      
                          public partial class DeliveryOptionEligibilityDetail
                          {
                              [JsonProperty("option")]
                              public string Option { get; set; }
                      
                              [JsonProperty("eligibility")]
                              public string Eligibility { get; set; }
                          }
                      
                          public partial class DestinationLocation
                          {
                              [JsonProperty("locationContactAndAddress")]
                              public LocationContactAndAddress LocationContactAndAddress { get; set; }
                      
                              [JsonProperty("locationType")]
                              public string LocationType { get; set; }
                          }
                      
                          public partial class LocationContactAndAddress
                          {
                              [JsonProperty("address")]
                              public LastUpdatedDestinationAddress Address { get; set; }
                          }
                      
                          public partial class EstimatedDeliveryTimeWindow
                          {
                              [JsonProperty("window")]
                              public ReturnDetail Window { get; set; }
                          }
                      
                          public partial class ReturnDetail
                          {
                          }
                      
                          public partial class LatestStatusDetail
                          {
                              [JsonProperty("code")]
                              public string Code { get; set; }
                      
                              [JsonProperty("derivedCode")]
                              public string DerivedCode { get; set; }
                      
                              [JsonProperty("statusByLocale")]
                              public string StatusByLocale { get; set; }
                      
                              [JsonProperty("description")]
                              public string Description { get; set; }
                      
                              [JsonProperty("scanLocation")]
                              public LastUpdatedDestinationAddress ScanLocation { get; set; }
                          }
                      
                          public partial class OriginLocation
                          {
                              [JsonProperty("locationContactAndAddress")]
                              public LocationContactAndAddress LocationContactAndAddress { get; set; }
                      
                              [JsonProperty("locationId")]
                              public string LocationId { get; set; }
                          }
                      
                          public partial class PackageDetails
                          {
                              [JsonProperty("packagingDescription")]
                              public PackagingDescription PackagingDescription { get; set; }
                      
                              [JsonProperty("sequenceNumber")]
                              [JsonConverter(typeof(ParseStringConverter))]
                              public long SequenceNumber { get; set; }
                      
                              [JsonProperty("count")]
                              [JsonConverter(typeof(ParseStringConverter))]
                              public long Count { get; set; }
                      
                              [JsonProperty("weightAndDimensions")]
                              public WeightAndDimensions WeightAndDimensions { get; set; }
                      
                              [JsonProperty("packageContent")]
                              public object[] PackageContent { get; set; }
                          }
                      
                          public partial class PackagingDescription
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("description")]
                              public string Description { get; set; }
                          }
                      
                          public partial class WeightAndDimensions
                          {
                              [JsonProperty("weight")]
                              public Weight[] Weight { get; set; }
                      
                              [JsonProperty("dimensions")]
                              public Dimension[] Dimensions { get; set; }
                          }
                      
                          public partial class Dimension
                          {
                              [JsonProperty("length")]
                              public long Length { get; set; }
                      
                              [JsonProperty("width")]
                              public long Width { get; set; }
                      
                              [JsonProperty("height")]
                              public long Height { get; set; }
                      
                              [JsonProperty("units")]
                              public string Units { get; set; }
                          }
                      
                          public partial class Weight
                          {
                              [JsonProperty("value")]
                              public string Value { get; set; }
                      
                              [JsonProperty("unit")]
                              public string Unit { get; set; }
                          }
                      
                          public partial class Information
                          {
                              [JsonProperty("contact")]
                              public ReturnDetail Contact { get; set; }
                      
                              [JsonProperty("address")]
                              public LastUpdatedDestinationAddress Address { get; set; }
                          }
                      
                          public partial class ScanEvent
                          {
                              [JsonProperty("date")]
                              public DateTimeOffset Date { get; set; }
                      
                              [JsonProperty("eventType")]
                              public string EventType { get; set; }
                      
                              [JsonProperty("eventDescription")]
                              public string EventDescription { get; set; }
                      
                              [JsonProperty("exceptionCode")]
                              public string ExceptionCode { get; set; }
                      
                              [JsonProperty("exceptionDescription")]
                              public string ExceptionDescription { get; set; }
                      
                              [JsonProperty("scanLocation")]
                              public ScanLocation ScanLocation { get; set; }
                      
                              [JsonProperty("locationId", NullValueHandling = NullValueHandling.Ignore)]
                              public string LocationId { get; set; }
                      
                              [JsonProperty("locationType")]
                              public string LocationType { get; set; }
                      
                              [JsonProperty("derivedStatusCode")]
                              public string DerivedStatusCode { get; set; }
                      
                              [JsonProperty("derivedStatus")]
                              public string DerivedStatus { get; set; }
                          }
                      
                          public partial class ScanLocation
                          {
                              [JsonProperty("streetLines")]
                              public string[] StreetLines { get; set; }
                      
                              [JsonProperty("city", NullValueHandling = NullValueHandling.Ignore)]
                              public string City { get; set; }
                      
                              [JsonProperty("stateOrProvinceCode", NullValueHandling = NullValueHandling.Ignore)]
                              public string StateOrProvinceCode { get; set; }
                      
                              [JsonProperty("postalCode", NullValueHandling = NullValueHandling.Ignore)]
                              [JsonConverter(typeof(ParseStringConverter))]
                              public long? PostalCode { get; set; }
                      
                              [JsonProperty("countryCode", NullValueHandling = NullValueHandling.Ignore)]
                              public string CountryCode { get; set; }
                      
                              [JsonProperty("residential")]
                              public bool Residential { get; set; }
                      
                              [JsonProperty("countryName", NullValueHandling = NullValueHandling.Ignore)]
                              public string CountryName { get; set; }
                          }
                      
                          public partial class ServiceDetail
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("description")]
                              public string Description { get; set; }
                      
                              [JsonProperty("shortDescription")]
                              public string ShortDescription { get; set; }
                          }
                      
                          public partial class ShipmentDetails
                          {
                              [JsonProperty("possessionStatus")]
                              public bool PossessionStatus { get; set; }
                      
                              [JsonProperty("weight")]
                              public Weight[] Weight { get; set; }
                          }
                      
                          public partial class SpecialHandling
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("description")]
                              public string Description { get; set; }
                      
                              [JsonProperty("paymentType")]
                              public string PaymentType { get; set; }
                          }
                      
                          public partial class StandardTransitTimeWindow
                          {
                              [JsonProperty("window")]
                              public Window Window { get; set; }
                          }
                      
                          public partial class Window
                          {
                              [JsonProperty("ends")]
                              public DateTimeOffset Ends { get; set; }
                          }
                      
                          public partial class TrackingNumberInfo
                          {
                              [JsonProperty("trackingNumber")]
                              public string TrackingNumber { get; set; }
                      
                              [JsonProperty("trackingNumberUniqueId")]
                              public string TrackingNumberUniqueId { get; set; }
                      
                              [JsonProperty("carrierCode")]
                              public string CarrierCode { get; set; }
                          }
                      
                          public partial class TrackyThing
                          {
                              public static TrackyThing FromJson(string json) => JsonConvert.DeserializeObject<TrackyThing>(json, HackyTracky.Converter.Settings);
                          }
                      
                          public static class Serialize
                          {
                              public static string ToJson(this TrackyThing self) => JsonConvert.SerializeObject(self, HackyTracky.Converter.Settings);
                          }
                      
                          internal static class Converter
                          {
                              public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
                              {
                                  MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
                                  DateParseHandling = DateParseHandling.None,
                                  Converters =
                                  {
                                      new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }
                                  },
                              };
                          }
                      
                          internal class ParseStringConverter : JsonConverter
                          {
                              public override bool CanConvert(Type t) => t == typeof(long) || t == typeof(long?);
                      
                              public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
                              {
                                  if (reader.TokenType == JsonToken.Null) return null;
                                  var value = serializer.Deserialize<string>(reader);
                                  long l;
                                  if (Int64.TryParse(value, out l))
                                  {
                                      return l;
                                  }
                                  throw new Exception("Cannot unmarshal type long");
                              }
                      
                              public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
                              {
                                  if (untypedValue == null)
                                  {
                                      serializer.Serialize(writer, null);
                                      return;
                                  }
                                  var value = (long)untypedValue;
                                  serializer.Serialize(writer, value.ToString());
                                  return;
                              }
                      
                              public static readonly ParseStringConverter Singleton = new ParseStringConverter();
                          }
                      }
                      
                      var trackyThing = TrackyThing.FromJson(jsonString);
                      
                      var allScanEvents = trackyThing.Output.CompleteTrackResults
                        .SelectMany(ctr => ctr.TrackResults)
                        .SelectMany(tr => tr.ScanEvents);
                          
                      
                      // <auto-generated />
                      //
                      // To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
                      //
                      //    using HackyTracky;
                      //
                      //    var trackyThing = TrackyThing.FromJson(jsonString);
                      
                      namespace HackyTracky
                      {
                          using System;
                          using System.Collections.Generic;
                      
                          using System.Globalization;
                          using Newtonsoft.Json;
                          using Newtonsoft.Json.Converters;
                      
                          public partial class TrackyThing
                          {
                              [JsonProperty("transactionId")]
                              public Guid TransactionId { get; set; }
                      
                              [JsonProperty("output")]
                              public Output Output { get; set; }
                          }
                      
                          public partial class Output
                          {
                              [JsonProperty("completeTrackResults")]
                              public CompleteTrackResult[] CompleteTrackResults { get; set; }
                          }
                      
                          public partial class CompleteTrackResult
                          {
                              [JsonProperty("trackingNumber")]
                              public string TrackingNumber { get; set; }
                      
                              [JsonProperty("trackResults")]
                              public TrackResult[] TrackResults { get; set; }
                          }
                      
                          public partial class TrackResult
                          {
                              [JsonProperty("trackingNumberInfo")]
                              public TrackingNumberInfo TrackingNumberInfo { get; set; }
                      
                              [JsonProperty("additionalTrackingInfo")]
                              public AdditionalTrackingInfo AdditionalTrackingInfo { get; set; }
                      
                              [JsonProperty("shipperInformation")]
                              public Information ShipperInformation { get; set; }
                      
                              [JsonProperty("recipientInformation")]
                              public Information RecipientInformation { get; set; }
                      
                              [JsonProperty("latestStatusDetail")]
                              public LatestStatusDetail LatestStatusDetail { get; set; }
                      
                              [JsonProperty("dateAndTimes")]
                              public DateAndTime[] DateAndTimes { get; set; }
                      
                              [JsonProperty("availableImages")]
                              public AvailableImage[] AvailableImages { get; set; }
                      
                              [JsonProperty("specialHandlings")]
                              public SpecialHandling[] SpecialHandlings { get; set; }
                      
                              [JsonProperty("packageDetails")]
                              public PackageDetails PackageDetails { get; set; }
                      
                              [JsonProperty("shipmentDetails")]
                              public ShipmentDetails ShipmentDetails { get; set; }
                      
                              [JsonProperty("scanEvents")]
                              public ScanEvent[] ScanEvents { get; set; }
                      
                              [JsonProperty("availableNotifications")]
                              public string[] AvailableNotifications { get; set; }
                      
                              [JsonProperty("deliveryDetails")]
                              public DeliveryDetails DeliveryDetails { get; set; }
                      
                              [JsonProperty("originLocation")]
                              public OriginLocation OriginLocation { get; set; }
                      
                              [JsonProperty("destinationLocation")]
                              public DestinationLocation DestinationLocation { get; set; }
                      
                              [JsonProperty("lastUpdatedDestinationAddress")]
                              public LastUpdatedDestinationAddress LastUpdatedDestinationAddress { get; set; }
                      
                              [JsonProperty("serviceDetail")]
                              public ServiceDetail ServiceDetail { get; set; }
                      
                              [JsonProperty("standardTransitTimeWindow")]
                              public StandardTransitTimeWindow StandardTransitTimeWindow { get; set; }
                      
                              [JsonProperty("estimatedDeliveryTimeWindow")]
                              public EstimatedDeliveryTimeWindow EstimatedDeliveryTimeWindow { get; set; }
                      
                              [JsonProperty("goodsClassificationCode")]
                              public string GoodsClassificationCode { get; set; }
                      
                              [JsonProperty("returnDetail")]
                              public ReturnDetail ReturnDetail { get; set; }
                          }
                      
                          public partial class AdditionalTrackingInfo
                          {
                              [JsonProperty("nickname")]
                              public string Nickname { get; set; }
                      
                              [JsonProperty("packageIdentifiers")]
                              public PackageIdentifier[] PackageIdentifiers { get; set; }
                      
                              [JsonProperty("hasAssociatedShipments")]
                              public bool HasAssociatedShipments { get; set; }
                          }
                      
                          public partial class PackageIdentifier
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("values")]
                              public string[] Values { get; set; }
                      
                              [JsonProperty("trackingNumberUniqueId")]
                              public string TrackingNumberUniqueId { get; set; }
                      
                              [JsonProperty("carrierCode")]
                              public string CarrierCode { get; set; }
                          }
                      
                          public partial class AvailableImage
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                          }
                      
                          public partial class DateAndTime
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("dateTime")]
                              public DateTimeOffset DateTime { get; set; }
                          }
                      
                          public partial class DeliveryDetails
                          {
                              [JsonProperty("actualDeliveryAddress")]
                              public LastUpdatedDestinationAddress ActualDeliveryAddress { get; set; }
                      
                              [JsonProperty("locationType")]
                              public string LocationType { get; set; }
                      
                              [JsonProperty("locationDescription")]
                              public string LocationDescription { get; set; }
                      
                              [JsonProperty("deliveryAttempts")]
                              [JsonConverter(typeof(ParseStringConverter))]
                              public long DeliveryAttempts { get; set; }
                      
                              [JsonProperty("receivedByName")]
                              public string ReceivedByName { get; set; }
                      
                              [JsonProperty("deliveryOptionEligibilityDetails")]
                              public DeliveryOptionEligibilityDetail[] DeliveryOptionEligibilityDetails { get; set; }
                          }
                      
                          public partial class LastUpdatedDestinationAddress
                          {
                              [JsonProperty("city")]
                              public string City { get; set; }
                      
                              [JsonProperty("stateOrProvinceCode")]
                              public string StateOrProvinceCode { get; set; }
                      
                              [JsonProperty("countryCode")]
                              public string CountryCode { get; set; }
                      
                              [JsonProperty("residential")]
                              public bool Residential { get; set; }
                      
                              [JsonProperty("countryName")]
                              public string CountryName { get; set; }
                          }
                      
                          public partial class DeliveryOptionEligibilityDetail
                          {
                              [JsonProperty("option")]
                              public string Option { get; set; }
                      
                              [JsonProperty("eligibility")]
                              public string Eligibility { get; set; }
                          }
                      
                          public partial class DestinationLocation
                          {
                              [JsonProperty("locationContactAndAddress")]
                              public LocationContactAndAddress LocationContactAndAddress { get; set; }
                      
                              [JsonProperty("locationType")]
                              public string LocationType { get; set; }
                          }
                      
                          public partial class LocationContactAndAddress
                          {
                              [JsonProperty("address")]
                              public LastUpdatedDestinationAddress Address { get; set; }
                          }
                      
                          public partial class EstimatedDeliveryTimeWindow
                          {
                              [JsonProperty("window")]
                              public ReturnDetail Window { get; set; }
                          }
                      
                          public partial class ReturnDetail
                          {
                          }
                      
                          public partial class LatestStatusDetail
                          {
                              [JsonProperty("code")]
                              public string Code { get; set; }
                      
                              [JsonProperty("derivedCode")]
                              public string DerivedCode { get; set; }
                      
                              [JsonProperty("statusByLocale")]
                              public string StatusByLocale { get; set; }
                      
                              [JsonProperty("description")]
                              public string Description { get; set; }
                      
                              [JsonProperty("scanLocation")]
                              public LastUpdatedDestinationAddress ScanLocation { get; set; }
                          }
                      
                          public partial class OriginLocation
                          {
                              [JsonProperty("locationContactAndAddress")]
                              public LocationContactAndAddress LocationContactAndAddress { get; set; }
                      
                              [JsonProperty("locationId")]
                              public string LocationId { get; set; }
                          }
                      
                          public partial class PackageDetails
                          {
                              [JsonProperty("packagingDescription")]
                              public PackagingDescription PackagingDescription { get; set; }
                      
                              [JsonProperty("sequenceNumber")]
                              [JsonConverter(typeof(ParseStringConverter))]
                              public long SequenceNumber { get; set; }
                      
                              [JsonProperty("count")]
                              [JsonConverter(typeof(ParseStringConverter))]
                              public long Count { get; set; }
                      
                              [JsonProperty("weightAndDimensions")]
                              public WeightAndDimensions WeightAndDimensions { get; set; }
                      
                              [JsonProperty("packageContent")]
                              public object[] PackageContent { get; set; }
                          }
                      
                          public partial class PackagingDescription
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("description")]
                              public string Description { get; set; }
                          }
                      
                          public partial class WeightAndDimensions
                          {
                              [JsonProperty("weight")]
                              public Weight[] Weight { get; set; }
                      
                              [JsonProperty("dimensions")]
                              public Dimension[] Dimensions { get; set; }
                          }
                      
                          public partial class Dimension
                          {
                              [JsonProperty("length")]
                              public long Length { get; set; }
                      
                              [JsonProperty("width")]
                              public long Width { get; set; }
                      
                              [JsonProperty("height")]
                              public long Height { get; set; }
                      
                              [JsonProperty("units")]
                              public string Units { get; set; }
                          }
                      
                          public partial class Weight
                          {
                              [JsonProperty("value")]
                              public string Value { get; set; }
                      
                              [JsonProperty("unit")]
                              public string Unit { get; set; }
                          }
                      
                          public partial class Information
                          {
                              [JsonProperty("contact")]
                              public ReturnDetail Contact { get; set; }
                      
                              [JsonProperty("address")]
                              public LastUpdatedDestinationAddress Address { get; set; }
                          }
                      
                          public partial class ScanEvent
                          {
                              [JsonProperty("date")]
                              public DateTimeOffset Date { get; set; }
                      
                              [JsonProperty("eventType")]
                              public string EventType { get; set; }
                      
                              [JsonProperty("eventDescription")]
                              public string EventDescription { get; set; }
                      
                              [JsonProperty("exceptionCode")]
                              public string ExceptionCode { get; set; }
                      
                              [JsonProperty("exceptionDescription")]
                              public string ExceptionDescription { get; set; }
                      
                              [JsonProperty("scanLocation")]
                              public ScanLocation ScanLocation { get; set; }
                      
                              [JsonProperty("locationId", NullValueHandling = NullValueHandling.Ignore)]
                              public string LocationId { get; set; }
                      
                              [JsonProperty("locationType")]
                              public string LocationType { get; set; }
                      
                              [JsonProperty("derivedStatusCode")]
                              public string DerivedStatusCode { get; set; }
                      
                              [JsonProperty("derivedStatus")]
                              public string DerivedStatus { get; set; }
                          }
                      
                          public partial class ScanLocation
                          {
                              [JsonProperty("streetLines")]
                              public string[] StreetLines { get; set; }
                      
                              [JsonProperty("city", NullValueHandling = NullValueHandling.Ignore)]
                              public string City { get; set; }
                      
                              [JsonProperty("stateOrProvinceCode", NullValueHandling = NullValueHandling.Ignore)]
                              public string StateOrProvinceCode { get; set; }
                      
                              [JsonProperty("postalCode", NullValueHandling = NullValueHandling.Ignore)]
                              [JsonConverter(typeof(ParseStringConverter))]
                              public long? PostalCode { get; set; }
                      
                              [JsonProperty("countryCode", NullValueHandling = NullValueHandling.Ignore)]
                              public string CountryCode { get; set; }
                      
                              [JsonProperty("residential")]
                              public bool Residential { get; set; }
                      
                              [JsonProperty("countryName", NullValueHandling = NullValueHandling.Ignore)]
                              public string CountryName { get; set; }
                          }
                      
                          public partial class ServiceDetail
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("description")]
                              public string Description { get; set; }
                      
                              [JsonProperty("shortDescription")]
                              public string ShortDescription { get; set; }
                          }
                      
                          public partial class ShipmentDetails
                          {
                              [JsonProperty("possessionStatus")]
                              public bool PossessionStatus { get; set; }
                      
                              [JsonProperty("weight")]
                              public Weight[] Weight { get; set; }
                          }
                      
                          public partial class SpecialHandling
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("description")]
                              public string Description { get; set; }
                      
                              [JsonProperty("paymentType")]
                              public string PaymentType { get; set; }
                          }
                      
                          public partial class StandardTransitTimeWindow
                          {
                              [JsonProperty("window")]
                              public Window Window { get; set; }
                          }
                      
                          public partial class Window
                          {
                              [JsonProperty("ends")]
                              public DateTimeOffset Ends { get; set; }
                          }
                      
                          public partial class TrackingNumberInfo
                          {
                              [JsonProperty("trackingNumber")]
                              public string TrackingNumber { get; set; }
                      
                              [JsonProperty("trackingNumberUniqueId")]
                              public string TrackingNumberUniqueId { get; set; }
                      
                              [JsonProperty("carrierCode")]
                              public string CarrierCode { get; set; }
                          }
                      
                          public partial class TrackyThing
                          {
                              public static TrackyThing FromJson(string json) => JsonConvert.DeserializeObject<TrackyThing>(json, HackyTracky.Converter.Settings);
                          }
                      
                          public static class Serialize
                          {
                              public static string ToJson(this TrackyThing self) => JsonConvert.SerializeObject(self, HackyTracky.Converter.Settings);
                          }
                      
                          internal static class Converter
                          {
                              public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
                              {
                                  MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
                                  DateParseHandling = DateParseHandling.None,
                                  Converters =
                                  {
                                      new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }
                                  },
                              };
                          }
                      
                          internal class ParseStringConverter : JsonConverter
                          {
                              public override bool CanConvert(Type t) => t == typeof(long) || t == typeof(long?);
                      
                              public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
                              {
                                  if (reader.TokenType == JsonToken.Null) return null;
                                  var value = serializer.Deserialize<string>(reader);
                                  long l;
                                  if (Int64.TryParse(value, out l))
                                  {
                                      return l;
                                  }
                                  throw new Exception("Cannot unmarshal type long");
                              }
                      
                              public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
                              {
                                  if (untypedValue == null)
                                  {
                                      serializer.Serialize(writer, null);
                                      return;
                                  }
                                  var value = (long)untypedValue;
                                  serializer.Serialize(writer, value.ToString());
                                  return;
                              }
                      
                              public static readonly ParseStringConverter Singleton = new ParseStringConverter();
                          }
                      }
                      
                      var trackyThing = TrackyThing.FromJson(jsonString);
                      
                      var allScanEvents = trackyThing.Output.CompleteTrackResults
                        .SelectMany(ctr => ctr.TrackResults)
                        .SelectMany(tr => tr.ScanEvents);
                          
                      
                      // <auto-generated />
                      //
                      // To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
                      //
                      //    using HackyTracky;
                      //
                      //    var trackyThing = TrackyThing.FromJson(jsonString);
                      
                      namespace HackyTracky
                      {
                          using System;
                          using System.Collections.Generic;
                      
                          using System.Globalization;
                          using Newtonsoft.Json;
                          using Newtonsoft.Json.Converters;
                      
                          public partial class TrackyThing
                          {
                              [JsonProperty("transactionId")]
                              public Guid TransactionId { get; set; }
                      
                              [JsonProperty("output")]
                              public Output Output { get; set; }
                          }
                      
                          public partial class Output
                          {
                              [JsonProperty("completeTrackResults")]
                              public CompleteTrackResult[] CompleteTrackResults { get; set; }
                          }
                      
                          public partial class CompleteTrackResult
                          {
                              [JsonProperty("trackingNumber")]
                              public string TrackingNumber { get; set; }
                      
                              [JsonProperty("trackResults")]
                              public TrackResult[] TrackResults { get; set; }
                          }
                      
                          public partial class TrackResult
                          {
                              [JsonProperty("trackingNumberInfo")]
                              public TrackingNumberInfo TrackingNumberInfo { get; set; }
                      
                              [JsonProperty("additionalTrackingInfo")]
                              public AdditionalTrackingInfo AdditionalTrackingInfo { get; set; }
                      
                              [JsonProperty("shipperInformation")]
                              public Information ShipperInformation { get; set; }
                      
                              [JsonProperty("recipientInformation")]
                              public Information RecipientInformation { get; set; }
                      
                              [JsonProperty("latestStatusDetail")]
                              public LatestStatusDetail LatestStatusDetail { get; set; }
                      
                              [JsonProperty("dateAndTimes")]
                              public DateAndTime[] DateAndTimes { get; set; }
                      
                              [JsonProperty("availableImages")]
                              public AvailableImage[] AvailableImages { get; set; }
                      
                              [JsonProperty("specialHandlings")]
                              public SpecialHandling[] SpecialHandlings { get; set; }
                      
                              [JsonProperty("packageDetails")]
                              public PackageDetails PackageDetails { get; set; }
                      
                              [JsonProperty("shipmentDetails")]
                              public ShipmentDetails ShipmentDetails { get; set; }
                      
                              [JsonProperty("scanEvents")]
                              public ScanEvent[] ScanEvents { get; set; }
                      
                              [JsonProperty("availableNotifications")]
                              public string[] AvailableNotifications { get; set; }
                      
                              [JsonProperty("deliveryDetails")]
                              public DeliveryDetails DeliveryDetails { get; set; }
                      
                              [JsonProperty("originLocation")]
                              public OriginLocation OriginLocation { get; set; }
                      
                              [JsonProperty("destinationLocation")]
                              public DestinationLocation DestinationLocation { get; set; }
                      
                              [JsonProperty("lastUpdatedDestinationAddress")]
                              public LastUpdatedDestinationAddress LastUpdatedDestinationAddress { get; set; }
                      
                              [JsonProperty("serviceDetail")]
                              public ServiceDetail ServiceDetail { get; set; }
                      
                              [JsonProperty("standardTransitTimeWindow")]
                              public StandardTransitTimeWindow StandardTransitTimeWindow { get; set; }
                      
                              [JsonProperty("estimatedDeliveryTimeWindow")]
                              public EstimatedDeliveryTimeWindow EstimatedDeliveryTimeWindow { get; set; }
                      
                              [JsonProperty("goodsClassificationCode")]
                              public string GoodsClassificationCode { get; set; }
                      
                              [JsonProperty("returnDetail")]
                              public ReturnDetail ReturnDetail { get; set; }
                          }
                      
                          public partial class AdditionalTrackingInfo
                          {
                              [JsonProperty("nickname")]
                              public string Nickname { get; set; }
                      
                              [JsonProperty("packageIdentifiers")]
                              public PackageIdentifier[] PackageIdentifiers { get; set; }
                      
                              [JsonProperty("hasAssociatedShipments")]
                              public bool HasAssociatedShipments { get; set; }
                          }
                      
                          public partial class PackageIdentifier
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("values")]
                              public string[] Values { get; set; }
                      
                              [JsonProperty("trackingNumberUniqueId")]
                              public string TrackingNumberUniqueId { get; set; }
                      
                              [JsonProperty("carrierCode")]
                              public string CarrierCode { get; set; }
                          }
                      
                          public partial class AvailableImage
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                          }
                      
                          public partial class DateAndTime
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("dateTime")]
                              public DateTimeOffset DateTime { get; set; }
                          }
                      
                          public partial class DeliveryDetails
                          {
                              [JsonProperty("actualDeliveryAddress")]
                              public LastUpdatedDestinationAddress ActualDeliveryAddress { get; set; }
                      
                              [JsonProperty("locationType")]
                              public string LocationType { get; set; }
                      
                              [JsonProperty("locationDescription")]
                              public string LocationDescription { get; set; }
                      
                              [JsonProperty("deliveryAttempts")]
                              [JsonConverter(typeof(ParseStringConverter))]
                              public long DeliveryAttempts { get; set; }
                      
                              [JsonProperty("receivedByName")]
                              public string ReceivedByName { get; set; }
                      
                              [JsonProperty("deliveryOptionEligibilityDetails")]
                              public DeliveryOptionEligibilityDetail[] DeliveryOptionEligibilityDetails { get; set; }
                          }
                      
                          public partial class LastUpdatedDestinationAddress
                          {
                              [JsonProperty("city")]
                              public string City { get; set; }
                      
                              [JsonProperty("stateOrProvinceCode")]
                              public string StateOrProvinceCode { get; set; }
                      
                              [JsonProperty("countryCode")]
                              public string CountryCode { get; set; }
                      
                              [JsonProperty("residential")]
                              public bool Residential { get; set; }
                      
                              [JsonProperty("countryName")]
                              public string CountryName { get; set; }
                          }
                      
                          public partial class DeliveryOptionEligibilityDetail
                          {
                              [JsonProperty("option")]
                              public string Option { get; set; }
                      
                              [JsonProperty("eligibility")]
                              public string Eligibility { get; set; }
                          }
                      
                          public partial class DestinationLocation
                          {
                              [JsonProperty("locationContactAndAddress")]
                              public LocationContactAndAddress LocationContactAndAddress { get; set; }
                      
                              [JsonProperty("locationType")]
                              public string LocationType { get; set; }
                          }
                      
                          public partial class LocationContactAndAddress
                          {
                              [JsonProperty("address")]
                              public LastUpdatedDestinationAddress Address { get; set; }
                          }
                      
                          public partial class EstimatedDeliveryTimeWindow
                          {
                              [JsonProperty("window")]
                              public ReturnDetail Window { get; set; }
                          }
                      
                          public partial class ReturnDetail
                          {
                          }
                      
                          public partial class LatestStatusDetail
                          {
                              [JsonProperty("code")]
                              public string Code { get; set; }
                      
                              [JsonProperty("derivedCode")]
                              public string DerivedCode { get; set; }
                      
                              [JsonProperty("statusByLocale")]
                              public string StatusByLocale { get; set; }
                      
                              [JsonProperty("description")]
                              public string Description { get; set; }
                      
                              [JsonProperty("scanLocation")]
                              public LastUpdatedDestinationAddress ScanLocation { get; set; }
                          }
                      
                          public partial class OriginLocation
                          {
                              [JsonProperty("locationContactAndAddress")]
                              public LocationContactAndAddress LocationContactAndAddress { get; set; }
                      
                              [JsonProperty("locationId")]
                              public string LocationId { get; set; }
                          }
                      
                          public partial class PackageDetails
                          {
                              [JsonProperty("packagingDescription")]
                              public PackagingDescription PackagingDescription { get; set; }
                      
                              [JsonProperty("sequenceNumber")]
                              [JsonConverter(typeof(ParseStringConverter))]
                              public long SequenceNumber { get; set; }
                      
                              [JsonProperty("count")]
                              [JsonConverter(typeof(ParseStringConverter))]
                              public long Count { get; set; }
                      
                              [JsonProperty("weightAndDimensions")]
                              public WeightAndDimensions WeightAndDimensions { get; set; }
                      
                              [JsonProperty("packageContent")]
                              public object[] PackageContent { get; set; }
                          }
                      
                          public partial class PackagingDescription
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("description")]
                              public string Description { get; set; }
                          }
                      
                          public partial class WeightAndDimensions
                          {
                              [JsonProperty("weight")]
                              public Weight[] Weight { get; set; }
                      
                              [JsonProperty("dimensions")]
                              public Dimension[] Dimensions { get; set; }
                          }
                      
                          public partial class Dimension
                          {
                              [JsonProperty("length")]
                              public long Length { get; set; }
                      
                              [JsonProperty("width")]
                              public long Width { get; set; }
                      
                              [JsonProperty("height")]
                              public long Height { get; set; }
                      
                              [JsonProperty("units")]
                              public string Units { get; set; }
                          }
                      
                          public partial class Weight
                          {
                              [JsonProperty("value")]
                              public string Value { get; set; }
                      
                              [JsonProperty("unit")]
                              public string Unit { get; set; }
                          }
                      
                          public partial class Information
                          {
                              [JsonProperty("contact")]
                              public ReturnDetail Contact { get; set; }
                      
                              [JsonProperty("address")]
                              public LastUpdatedDestinationAddress Address { get; set; }
                          }
                      
                          public partial class ScanEvent
                          {
                              [JsonProperty("date")]
                              public DateTimeOffset Date { get; set; }
                      
                              [JsonProperty("eventType")]
                              public string EventType { get; set; }
                      
                              [JsonProperty("eventDescription")]
                              public string EventDescription { get; set; }
                      
                              [JsonProperty("exceptionCode")]
                              public string ExceptionCode { get; set; }
                      
                              [JsonProperty("exceptionDescription")]
                              public string ExceptionDescription { get; set; }
                      
                              [JsonProperty("scanLocation")]
                              public ScanLocation ScanLocation { get; set; }
                      
                              [JsonProperty("locationId", NullValueHandling = NullValueHandling.Ignore)]
                              public string LocationId { get; set; }
                      
                              [JsonProperty("locationType")]
                              public string LocationType { get; set; }
                      
                              [JsonProperty("derivedStatusCode")]
                              public string DerivedStatusCode { get; set; }
                      
                              [JsonProperty("derivedStatus")]
                              public string DerivedStatus { get; set; }
                          }
                      
                          public partial class ScanLocation
                          {
                              [JsonProperty("streetLines")]
                              public string[] StreetLines { get; set; }
                      
                              [JsonProperty("city", NullValueHandling = NullValueHandling.Ignore)]
                              public string City { get; set; }
                      
                              [JsonProperty("stateOrProvinceCode", NullValueHandling = NullValueHandling.Ignore)]
                              public string StateOrProvinceCode { get; set; }
                      
                              [JsonProperty("postalCode", NullValueHandling = NullValueHandling.Ignore)]
                              [JsonConverter(typeof(ParseStringConverter))]
                              public long? PostalCode { get; set; }
                      
                              [JsonProperty("countryCode", NullValueHandling = NullValueHandling.Ignore)]
                              public string CountryCode { get; set; }
                      
                              [JsonProperty("residential")]
                              public bool Residential { get; set; }
                      
                              [JsonProperty("countryName", NullValueHandling = NullValueHandling.Ignore)]
                              public string CountryName { get; set; }
                          }
                      
                          public partial class ServiceDetail
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("description")]
                              public string Description { get; set; }
                      
                              [JsonProperty("shortDescription")]
                              public string ShortDescription { get; set; }
                          }
                      
                          public partial class ShipmentDetails
                          {
                              [JsonProperty("possessionStatus")]
                              public bool PossessionStatus { get; set; }
                      
                              [JsonProperty("weight")]
                              public Weight[] Weight { get; set; }
                          }
                      
                          public partial class SpecialHandling
                          {
                              [JsonProperty("type")]
                              public string Type { get; set; }
                      
                              [JsonProperty("description")]
                              public string Description { get; set; }
                      
                              [JsonProperty("paymentType")]
                              public string PaymentType { get; set; }
                          }
                      
                          public partial class StandardTransitTimeWindow
                          {
                              [JsonProperty("window")]
                              public Window Window { get; set; }
                          }
                      
                          public partial class Window
                          {
                              [JsonProperty("ends")]
                              public DateTimeOffset Ends { get; set; }
                          }
                      
                          public partial class TrackingNumberInfo
                          {
                              [JsonProperty("trackingNumber")]
                              public string TrackingNumber { get; set; }
                      
                              [JsonProperty("trackingNumberUniqueId")]
                              public string TrackingNumberUniqueId { get; set; }
                      
                              [JsonProperty("carrierCode")]
                              public string CarrierCode { get; set; }
                          }
                      
                          public partial class TrackyThing
                          {
                              public static TrackyThing FromJson(string json) => JsonConvert.DeserializeObject<TrackyThing>(json, HackyTracky.Converter.Settings);
                          }
                      
                          public static class Serialize
                          {
                              public static string ToJson(this TrackyThing self) => JsonConvert.SerializeObject(self, HackyTracky.Converter.Settings);
                          }
                      
                          internal static class Converter
                          {
                              public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
                              {
                                  MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
                                  DateParseHandling = DateParseHandling.None,
                                  Converters =
                                  {
                                      new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }
                                  },
                              };
                          }
                      
                          internal class ParseStringConverter : JsonConverter
                          {
                              public override bool CanConvert(Type t) => t == typeof(long) || t == typeof(long?);
                      
                              public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
                              {
                                  if (reader.TokenType == JsonToken.Null) return null;
                                  var value = serializer.Deserialize<string>(reader);
                                  long l;
                                  if (Int64.TryParse(value, out l))
                                  {
                                      return l;
                                  }
                                  throw new Exception("Cannot unmarshal type long");
                              }
                      
                              public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
                              {
                                  if (untypedValue == null)
                                  {
                                      serializer.Serialize(writer, null);
                                      return;
                                  }
                                  var value = (long)untypedValue;
                                  serializer.Serialize(writer, value.ToString());
                                  return;
                              }
                      
                              public static readonly ParseStringConverter Singleton = new ParseStringConverter();
                          }
                      }
                      
                      var trackyThing = TrackyThing.FromJson(jsonString);
                      
                      var allScanEvents = trackyThing.Output.CompleteTrackResults
                        .SelectMany(ctr => ctr.TrackResults)
                        .SelectMany(tr => tr.ScanEvents);
                          
                      

                      how to turn Csv data to dictionary

                      copy iconCopydownload iconDownload
                      def get_dict_without(d, key_to_remove):
                        d.pop(key_to_remove)
                        return d
                      
                      
                      new_flightinfodict = [{rec["starting_airport"]: get_dict_without(rec, "starting_airport")} for rec in flightinfodict]
                      
                      flightinfodict.set_index('starting_airport').to_dict(orient='index')
                      
                      {'Hilo International Airport': {'destination_airport': 'Boise Airport ',
                        'airline': 'delta',
                        'average_time_taken': 300,
                        'start_state': 'HAWAII',
                        'end_state': 'IDAHO'}}
                      
                      df.set_index('starting_airport')[['destination_airport','airline','average_time_taken']].to_dict(orient='index')
                      
                      flightinfodict.set_index('starting_airport').to_dict(orient='index')
                      
                      {'Hilo International Airport': {'destination_airport': 'Boise Airport ',
                        'airline': 'delta',
                        'average_time_taken': 300,
                        'start_state': 'HAWAII',
                        'end_state': 'IDAHO'}}
                      
                      df.set_index('starting_airport')[['destination_airport','airline','average_time_taken']].to_dict(orient='index')
                      
                      flightinfodict.set_index('starting_airport').to_dict(orient='index')
                      
                      {'Hilo International Airport': {'destination_airport': 'Boise Airport ',
                        'airline': 'delta',
                        'average_time_taken': 300,
                        'start_state': 'HAWAII',
                        'end_state': 'IDAHO'}}
                      
                      df.set_index('starting_airport')[['destination_airport','airline','average_time_taken']].to_dict(orient='index')
                      

                      Getting simple table to a word list with Kable

                      copy iconCopydownload iconDownload
                         ```{r, echo = FALSE}
                          
                          library(kableExtra)
                          library(data.table)
                          
                          table3 <- data.frame("uno, dos, tres, cuatro, cinco")
                          
                          table_t3 <- transpose(table3)
                          colnames(table_t3) <- NULL
                          
                          kable(table_t3, format = "latex", align ="|c|", booktabs = T) %>%
                              kable_styling(latex_options =c("striped", "hold_position")) 
                          
                          ```
                      
                      kable_styling(latex_options =c("striped", "hold_position"), full_width = TRUE)
                      
                         ```{r, echo = FALSE}
                          
                          library(kableExtra)
                          library(data.table)
                          
                          table3 <- data.frame("uno, dos, tres, cuatro, cinco")
                          
                          table_t3 <- transpose(table3)
                          colnames(table_t3) <- NULL
                          
                          kable(table_t3, format = "latex", align ="|c|", booktabs = T) %>%
                              kable_styling(latex_options =c("striped", "hold_position")) 
                          
                          ```
                      
                      kable_styling(latex_options =c("striped", "hold_position"), full_width = TRUE)
                      

                      Freeze UI with Threads

                      copy iconCopydownload iconDownload
                      Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
                      
                      hiloCertificador1 = New Thread(AddressOf crearObjeto1)
                      hiloCertificador1.IsBackground = True
                      hiloCertificador1.Start()
                      
                      Public Sub crearObjeto1()
                          UpdateList()
                      End Sub
                      Private Sub UpdateList()
                          ' do stuff
                      End Sub
                      
                      Private Delegate Sub UpdateListDelegate()
                      Private Sub UpdateList()
                          If Me.InvokeRequired Then
                              Me.BeginInvoke(New UpdateListDelegate(AddressOf UpdateList))
                          Else
                              ' looks like a bunch of non-UI stuff
                          End If
                      End Sub
                      
                      Dim conn As New SqlConnection(parametrosCon)
                      Dim cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                      Dim da As New SqlClient.SqlDataAdapter(cmd)
                      ' do stuff
                      cmd.Connection.Close()
                      DataSet.Tables("Query").Clear()
                      
                      Dim Timer2 As New System.Threading.Timer(Sub() UpdateList(), Nothing, -1, -1)
                      
                      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
                          ' done in Form_Load if your Timer1 is Enabled in designer
                          ' or can be done in a Button.Click, or however you had enabled Timer1
                          Timer2.Change(2000, 4000) ' this will enable Timer after 2 seconds, then will tick every 4 seconds
                          'Timer2.Change(-1, -1) ' this is how it's disabled
                      End Sub
                      
                      Private Sub UpdateList()
                          Timer2.Change(-1, -1)
                          Using conn As New SqlConnection(parametrosCon)
                              conn.Open()
                              Using cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                                  Using da As New SqlClient.SqlDataAdapter(cmd)
                                      da.SelectCommand = cmd
                                      da.Fill(DataSet, "Query")
                                      For Each fila As DataRow In DataSet.Tables(0).Rows
                                          Using cmdInner = New SqlCommand("UPDATE COLA SET enviado = 1 WHERE DOCENTRY = (@docEntry)  AND TIPO = (@tipodoc)", conn)
                                              cmd.Connection.Open()
                                              cmd.Parameters.AddWithValue("@docEntry", fila("docentry"))
                                              cmd.Parameters.AddWithValue("@tipodoc", fila("tipo"))
                                              cmd.ExecuteNonQuery()
                                              Dim factura As New FacturaCerificacion(fila("docentry"), fila("tipo"))
                                          End Using
                                      Next
                                  End Using
                              End Using
                              DoUiStuff(arguments) ' for example, if you need to update a GridView
                              DataSet.Tables("Query").Clear()
                          End Using
                      End Sub
                      
                      Private Sub DoUiStuff(arguments As Whatever)
                          If Me.InvokeRequired() Then
                              Me.Invoke(New Action(Of Whatever)(AddressOf DoUiStuff), arguments)
                          Else
                              ' do UI stuff with arguments
                          End If
                          Timer2.Change(2000, -1)
                      End Sub
                      
                      'Form overrides dispose to clean up the component list.
                      <System.Diagnostics.DebuggerNonUserCode()>
                      Protected Overrides Sub Dispose(ByVal disposing As Boolean)
                          Try
                              If disposing Then
                                  components?.Dispose()
                                  Timer2?.Dispose()
                              End If
                          Finally
                              MyBase.Dispose(disposing)
                          End Try
                      End Sub
                      
                      Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
                      
                      hiloCertificador1 = New Thread(AddressOf crearObjeto1)
                      hiloCertificador1.IsBackground = True
                      hiloCertificador1.Start()
                      
                      Public Sub crearObjeto1()
                          UpdateList()
                      End Sub
                      Private Sub UpdateList()
                          ' do stuff
                      End Sub
                      
                      Private Delegate Sub UpdateListDelegate()
                      Private Sub UpdateList()
                          If Me.InvokeRequired Then
                              Me.BeginInvoke(New UpdateListDelegate(AddressOf UpdateList))
                          Else
                              ' looks like a bunch of non-UI stuff
                          End If
                      End Sub
                      
                      Dim conn As New SqlConnection(parametrosCon)
                      Dim cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                      Dim da As New SqlClient.SqlDataAdapter(cmd)
                      ' do stuff
                      cmd.Connection.Close()
                      DataSet.Tables("Query").Clear()
                      
                      Dim Timer2 As New System.Threading.Timer(Sub() UpdateList(), Nothing, -1, -1)
                      
                      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
                          ' done in Form_Load if your Timer1 is Enabled in designer
                          ' or can be done in a Button.Click, or however you had enabled Timer1
                          Timer2.Change(2000, 4000) ' this will enable Timer after 2 seconds, then will tick every 4 seconds
                          'Timer2.Change(-1, -1) ' this is how it's disabled
                      End Sub
                      
                      Private Sub UpdateList()
                          Timer2.Change(-1, -1)
                          Using conn As New SqlConnection(parametrosCon)
                              conn.Open()
                              Using cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                                  Using da As New SqlClient.SqlDataAdapter(cmd)
                                      da.SelectCommand = cmd
                                      da.Fill(DataSet, "Query")
                                      For Each fila As DataRow In DataSet.Tables(0).Rows
                                          Using cmdInner = New SqlCommand("UPDATE COLA SET enviado = 1 WHERE DOCENTRY = (@docEntry)  AND TIPO = (@tipodoc)", conn)
                                              cmd.Connection.Open()
                                              cmd.Parameters.AddWithValue("@docEntry", fila("docentry"))
                                              cmd.Parameters.AddWithValue("@tipodoc", fila("tipo"))
                                              cmd.ExecuteNonQuery()
                                              Dim factura As New FacturaCerificacion(fila("docentry"), fila("tipo"))
                                          End Using
                                      Next
                                  End Using
                              End Using
                              DoUiStuff(arguments) ' for example, if you need to update a GridView
                              DataSet.Tables("Query").Clear()
                          End Using
                      End Sub
                      
                      Private Sub DoUiStuff(arguments As Whatever)
                          If Me.InvokeRequired() Then
                              Me.Invoke(New Action(Of Whatever)(AddressOf DoUiStuff), arguments)
                          Else
                              ' do UI stuff with arguments
                          End If
                          Timer2.Change(2000, -1)
                      End Sub
                      
                      'Form overrides dispose to clean up the component list.
                      <System.Diagnostics.DebuggerNonUserCode()>
                      Protected Overrides Sub Dispose(ByVal disposing As Boolean)
                          Try
                              If disposing Then
                                  components?.Dispose()
                                  Timer2?.Dispose()
                              End If
                          Finally
                              MyBase.Dispose(disposing)
                          End Try
                      End Sub
                      
                      Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
                      
                      hiloCertificador1 = New Thread(AddressOf crearObjeto1)
                      hiloCertificador1.IsBackground = True
                      hiloCertificador1.Start()
                      
                      Public Sub crearObjeto1()
                          UpdateList()
                      End Sub
                      Private Sub UpdateList()
                          ' do stuff
                      End Sub
                      
                      Private Delegate Sub UpdateListDelegate()
                      Private Sub UpdateList()
                          If Me.InvokeRequired Then
                              Me.BeginInvoke(New UpdateListDelegate(AddressOf UpdateList))
                          Else
                              ' looks like a bunch of non-UI stuff
                          End If
                      End Sub
                      
                      Dim conn As New SqlConnection(parametrosCon)
                      Dim cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                      Dim da As New SqlClient.SqlDataAdapter(cmd)
                      ' do stuff
                      cmd.Connection.Close()
                      DataSet.Tables("Query").Clear()
                      
                      Dim Timer2 As New System.Threading.Timer(Sub() UpdateList(), Nothing, -1, -1)
                      
                      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
                          ' done in Form_Load if your Timer1 is Enabled in designer
                          ' or can be done in a Button.Click, or however you had enabled Timer1
                          Timer2.Change(2000, 4000) ' this will enable Timer after 2 seconds, then will tick every 4 seconds
                          'Timer2.Change(-1, -1) ' this is how it's disabled
                      End Sub
                      
                      Private Sub UpdateList()
                          Timer2.Change(-1, -1)
                          Using conn As New SqlConnection(parametrosCon)
                              conn.Open()
                              Using cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                                  Using da As New SqlClient.SqlDataAdapter(cmd)
                                      da.SelectCommand = cmd
                                      da.Fill(DataSet, "Query")
                                      For Each fila As DataRow In DataSet.Tables(0).Rows
                                          Using cmdInner = New SqlCommand("UPDATE COLA SET enviado = 1 WHERE DOCENTRY = (@docEntry)  AND TIPO = (@tipodoc)", conn)
                                              cmd.Connection.Open()
                                              cmd.Parameters.AddWithValue("@docEntry", fila("docentry"))
                                              cmd.Parameters.AddWithValue("@tipodoc", fila("tipo"))
                                              cmd.ExecuteNonQuery()
                                              Dim factura As New FacturaCerificacion(fila("docentry"), fila("tipo"))
                                          End Using
                                      Next
                                  End Using
                              End Using
                              DoUiStuff(arguments) ' for example, if you need to update a GridView
                              DataSet.Tables("Query").Clear()
                          End Using
                      End Sub
                      
                      Private Sub DoUiStuff(arguments As Whatever)
                          If Me.InvokeRequired() Then
                              Me.Invoke(New Action(Of Whatever)(AddressOf DoUiStuff), arguments)
                          Else
                              ' do UI stuff with arguments
                          End If
                          Timer2.Change(2000, -1)
                      End Sub
                      
                      'Form overrides dispose to clean up the component list.
                      <System.Diagnostics.DebuggerNonUserCode()>
                      Protected Overrides Sub Dispose(ByVal disposing As Boolean)
                          Try
                              If disposing Then
                                  components?.Dispose()
                                  Timer2?.Dispose()
                              End If
                          Finally
                              MyBase.Dispose(disposing)
                          End Try
                      End Sub
                      
                      Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
                      
                      hiloCertificador1 = New Thread(AddressOf crearObjeto1)
                      hiloCertificador1.IsBackground = True
                      hiloCertificador1.Start()
                      
                      Public Sub crearObjeto1()
                          UpdateList()
                      End Sub
                      Private Sub UpdateList()
                          ' do stuff
                      End Sub
                      
                      Private Delegate Sub UpdateListDelegate()
                      Private Sub UpdateList()
                          If Me.InvokeRequired Then
                              Me.BeginInvoke(New UpdateListDelegate(AddressOf UpdateList))
                          Else
                              ' looks like a bunch of non-UI stuff
                          End If
                      End Sub
                      
                      Dim conn As New SqlConnection(parametrosCon)
                      Dim cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                      Dim da As New SqlClient.SqlDataAdapter(cmd)
                      ' do stuff
                      cmd.Connection.Close()
                      DataSet.Tables("Query").Clear()
                      
                      Dim Timer2 As New System.Threading.Timer(Sub() UpdateList(), Nothing, -1, -1)
                      
                      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
                          ' done in Form_Load if your Timer1 is Enabled in designer
                          ' or can be done in a Button.Click, or however you had enabled Timer1
                          Timer2.Change(2000, 4000) ' this will enable Timer after 2 seconds, then will tick every 4 seconds
                          'Timer2.Change(-1, -1) ' this is how it's disabled
                      End Sub
                      
                      Private Sub UpdateList()
                          Timer2.Change(-1, -1)
                          Using conn As New SqlConnection(parametrosCon)
                              conn.Open()
                              Using cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                                  Using da As New SqlClient.SqlDataAdapter(cmd)
                                      da.SelectCommand = cmd
                                      da.Fill(DataSet, "Query")
                                      For Each fila As DataRow In DataSet.Tables(0).Rows
                                          Using cmdInner = New SqlCommand("UPDATE COLA SET enviado = 1 WHERE DOCENTRY = (@docEntry)  AND TIPO = (@tipodoc)", conn)
                                              cmd.Connection.Open()
                                              cmd.Parameters.AddWithValue("@docEntry", fila("docentry"))
                                              cmd.Parameters.AddWithValue("@tipodoc", fila("tipo"))
                                              cmd.ExecuteNonQuery()
                                              Dim factura As New FacturaCerificacion(fila("docentry"), fila("tipo"))
                                          End Using
                                      Next
                                  End Using
                              End Using
                              DoUiStuff(arguments) ' for example, if you need to update a GridView
                              DataSet.Tables("Query").Clear()
                          End Using
                      End Sub
                      
                      Private Sub DoUiStuff(arguments As Whatever)
                          If Me.InvokeRequired() Then
                              Me.Invoke(New Action(Of Whatever)(AddressOf DoUiStuff), arguments)
                          Else
                              ' do UI stuff with arguments
                          End If
                          Timer2.Change(2000, -1)
                      End Sub
                      
                      'Form overrides dispose to clean up the component list.
                      <System.Diagnostics.DebuggerNonUserCode()>
                      Protected Overrides Sub Dispose(ByVal disposing As Boolean)
                          Try
                              If disposing Then
                                  components?.Dispose()
                                  Timer2?.Dispose()
                              End If
                          Finally
                              MyBase.Dispose(disposing)
                          End Try
                      End Sub
                      
                      Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
                      
                      hiloCertificador1 = New Thread(AddressOf crearObjeto1)
                      hiloCertificador1.IsBackground = True
                      hiloCertificador1.Start()
                      
                      Public Sub crearObjeto1()
                          UpdateList()
                      End Sub
                      Private Sub UpdateList()
                          ' do stuff
                      End Sub
                      
                      Private Delegate Sub UpdateListDelegate()
                      Private Sub UpdateList()
                          If Me.InvokeRequired Then
                              Me.BeginInvoke(New UpdateListDelegate(AddressOf UpdateList))
                          Else
                              ' looks like a bunch of non-UI stuff
                          End If
                      End Sub
                      
                      Dim conn As New SqlConnection(parametrosCon)
                      Dim cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                      Dim da As New SqlClient.SqlDataAdapter(cmd)
                      ' do stuff
                      cmd.Connection.Close()
                      DataSet.Tables("Query").Clear()
                      
                      Dim Timer2 As New System.Threading.Timer(Sub() UpdateList(), Nothing, -1, -1)
                      
                      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
                          ' done in Form_Load if your Timer1 is Enabled in designer
                          ' or can be done in a Button.Click, or however you had enabled Timer1
                          Timer2.Change(2000, 4000) ' this will enable Timer after 2 seconds, then will tick every 4 seconds
                          'Timer2.Change(-1, -1) ' this is how it's disabled
                      End Sub
                      
                      Private Sub UpdateList()
                          Timer2.Change(-1, -1)
                          Using conn As New SqlConnection(parametrosCon)
                              conn.Open()
                              Using cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                                  Using da As New SqlClient.SqlDataAdapter(cmd)
                                      da.SelectCommand = cmd
                                      da.Fill(DataSet, "Query")
                                      For Each fila As DataRow In DataSet.Tables(0).Rows
                                          Using cmdInner = New SqlCommand("UPDATE COLA SET enviado = 1 WHERE DOCENTRY = (@docEntry)  AND TIPO = (@tipodoc)", conn)
                                              cmd.Connection.Open()
                                              cmd.Parameters.AddWithValue("@docEntry", fila("docentry"))
                                              cmd.Parameters.AddWithValue("@tipodoc", fila("tipo"))
                                              cmd.ExecuteNonQuery()
                                              Dim factura As New FacturaCerificacion(fila("docentry"), fila("tipo"))
                                          End Using
                                      Next
                                  End Using
                              End Using
                              DoUiStuff(arguments) ' for example, if you need to update a GridView
                              DataSet.Tables("Query").Clear()
                          End Using
                      End Sub
                      
                      Private Sub DoUiStuff(arguments As Whatever)
                          If Me.InvokeRequired() Then
                              Me.Invoke(New Action(Of Whatever)(AddressOf DoUiStuff), arguments)
                          Else
                              ' do UI stuff with arguments
                          End If
                          Timer2.Change(2000, -1)
                      End Sub
                      
                      'Form overrides dispose to clean up the component list.
                      <System.Diagnostics.DebuggerNonUserCode()>
                      Protected Overrides Sub Dispose(ByVal disposing As Boolean)
                          Try
                              If disposing Then
                                  components?.Dispose()
                                  Timer2?.Dispose()
                              End If
                          Finally
                              MyBase.Dispose(disposing)
                          End Try
                      End Sub
                      
                      Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
                      
                      hiloCertificador1 = New Thread(AddressOf crearObjeto1)
                      hiloCertificador1.IsBackground = True
                      hiloCertificador1.Start()
                      
                      Public Sub crearObjeto1()
                          UpdateList()
                      End Sub
                      Private Sub UpdateList()
                          ' do stuff
                      End Sub
                      
                      Private Delegate Sub UpdateListDelegate()
                      Private Sub UpdateList()
                          If Me.InvokeRequired Then
                              Me.BeginInvoke(New UpdateListDelegate(AddressOf UpdateList))
                          Else
                              ' looks like a bunch of non-UI stuff
                          End If
                      End Sub
                      
                      Dim conn As New SqlConnection(parametrosCon)
                      Dim cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                      Dim da As New SqlClient.SqlDataAdapter(cmd)
                      ' do stuff
                      cmd.Connection.Close()
                      DataSet.Tables("Query").Clear()
                      
                      Dim Timer2 As New System.Threading.Timer(Sub() UpdateList(), Nothing, -1, -1)
                      
                      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
                          ' done in Form_Load if your Timer1 is Enabled in designer
                          ' or can be done in a Button.Click, or however you had enabled Timer1
                          Timer2.Change(2000, 4000) ' this will enable Timer after 2 seconds, then will tick every 4 seconds
                          'Timer2.Change(-1, -1) ' this is how it's disabled
                      End Sub
                      
                      Private Sub UpdateList()
                          Timer2.Change(-1, -1)
                          Using conn As New SqlConnection(parametrosCon)
                              conn.Open()
                              Using cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                                  Using da As New SqlClient.SqlDataAdapter(cmd)
                                      da.SelectCommand = cmd
                                      da.Fill(DataSet, "Query")
                                      For Each fila As DataRow In DataSet.Tables(0).Rows
                                          Using cmdInner = New SqlCommand("UPDATE COLA SET enviado = 1 WHERE DOCENTRY = (@docEntry)  AND TIPO = (@tipodoc)", conn)
                                              cmd.Connection.Open()
                                              cmd.Parameters.AddWithValue("@docEntry", fila("docentry"))
                                              cmd.Parameters.AddWithValue("@tipodoc", fila("tipo"))
                                              cmd.ExecuteNonQuery()
                                              Dim factura As New FacturaCerificacion(fila("docentry"), fila("tipo"))
                                          End Using
                                      Next
                                  End Using
                              End Using
                              DoUiStuff(arguments) ' for example, if you need to update a GridView
                              DataSet.Tables("Query").Clear()
                          End Using
                      End Sub
                      
                      Private Sub DoUiStuff(arguments As Whatever)
                          If Me.InvokeRequired() Then
                              Me.Invoke(New Action(Of Whatever)(AddressOf DoUiStuff), arguments)
                          Else
                              ' do UI stuff with arguments
                          End If
                          Timer2.Change(2000, -1)
                      End Sub
                      
                      'Form overrides dispose to clean up the component list.
                      <System.Diagnostics.DebuggerNonUserCode()>
                      Protected Overrides Sub Dispose(ByVal disposing As Boolean)
                          Try
                              If disposing Then
                                  components?.Dispose()
                                  Timer2?.Dispose()
                              End If
                          Finally
                              MyBase.Dispose(disposing)
                          End Try
                      End Sub
                      
                      Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
                      
                      hiloCertificador1 = New Thread(AddressOf crearObjeto1)
                      hiloCertificador1.IsBackground = True
                      hiloCertificador1.Start()
                      
                      Public Sub crearObjeto1()
                          UpdateList()
                      End Sub
                      Private Sub UpdateList()
                          ' do stuff
                      End Sub
                      
                      Private Delegate Sub UpdateListDelegate()
                      Private Sub UpdateList()
                          If Me.InvokeRequired Then
                              Me.BeginInvoke(New UpdateListDelegate(AddressOf UpdateList))
                          Else
                              ' looks like a bunch of non-UI stuff
                          End If
                      End Sub
                      
                      Dim conn As New SqlConnection(parametrosCon)
                      Dim cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                      Dim da As New SqlClient.SqlDataAdapter(cmd)
                      ' do stuff
                      cmd.Connection.Close()
                      DataSet.Tables("Query").Clear()
                      
                      Dim Timer2 As New System.Threading.Timer(Sub() UpdateList(), Nothing, -1, -1)
                      
                      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
                          ' done in Form_Load if your Timer1 is Enabled in designer
                          ' or can be done in a Button.Click, or however you had enabled Timer1
                          Timer2.Change(2000, 4000) ' this will enable Timer after 2 seconds, then will tick every 4 seconds
                          'Timer2.Change(-1, -1) ' this is how it's disabled
                      End Sub
                      
                      Private Sub UpdateList()
                          Timer2.Change(-1, -1)
                          Using conn As New SqlConnection(parametrosCon)
                              conn.Open()
                              Using cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                                  Using da As New SqlClient.SqlDataAdapter(cmd)
                                      da.SelectCommand = cmd
                                      da.Fill(DataSet, "Query")
                                      For Each fila As DataRow In DataSet.Tables(0).Rows
                                          Using cmdInner = New SqlCommand("UPDATE COLA SET enviado = 1 WHERE DOCENTRY = (@docEntry)  AND TIPO = (@tipodoc)", conn)
                                              cmd.Connection.Open()
                                              cmd.Parameters.AddWithValue("@docEntry", fila("docentry"))
                                              cmd.Parameters.AddWithValue("@tipodoc", fila("tipo"))
                                              cmd.ExecuteNonQuery()
                                              Dim factura As New FacturaCerificacion(fila("docentry"), fila("tipo"))
                                          End Using
                                      Next
                                  End Using
                              End Using
                              DoUiStuff(arguments) ' for example, if you need to update a GridView
                              DataSet.Tables("Query").Clear()
                          End Using
                      End Sub
                      
                      Private Sub DoUiStuff(arguments As Whatever)
                          If Me.InvokeRequired() Then
                              Me.Invoke(New Action(Of Whatever)(AddressOf DoUiStuff), arguments)
                          Else
                              ' do UI stuff with arguments
                          End If
                          Timer2.Change(2000, -1)
                      End Sub
                      
                      'Form overrides dispose to clean up the component list.
                      <System.Diagnostics.DebuggerNonUserCode()>
                      Protected Overrides Sub Dispose(ByVal disposing As Boolean)
                          Try
                              If disposing Then
                                  components?.Dispose()
                                  Timer2?.Dispose()
                              End If
                          Finally
                              MyBase.Dispose(disposing)
                          End Try
                      End Sub
                      
                      Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
                      
                      hiloCertificador1 = New Thread(AddressOf crearObjeto1)
                      hiloCertificador1.IsBackground = True
                      hiloCertificador1.Start()
                      
                      Public Sub crearObjeto1()
                          UpdateList()
                      End Sub
                      Private Sub UpdateList()
                          ' do stuff
                      End Sub
                      
                      Private Delegate Sub UpdateListDelegate()
                      Private Sub UpdateList()
                          If Me.InvokeRequired Then
                              Me.BeginInvoke(New UpdateListDelegate(AddressOf UpdateList))
                          Else
                              ' looks like a bunch of non-UI stuff
                          End If
                      End Sub
                      
                      Dim conn As New SqlConnection(parametrosCon)
                      Dim cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                      Dim da As New SqlClient.SqlDataAdapter(cmd)
                      ' do stuff
                      cmd.Connection.Close()
                      DataSet.Tables("Query").Clear()
                      
                      Dim Timer2 As New System.Threading.Timer(Sub() UpdateList(), Nothing, -1, -1)
                      
                      Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
                          ' done in Form_Load if your Timer1 is Enabled in designer
                          ' or can be done in a Button.Click, or however you had enabled Timer1
                          Timer2.Change(2000, 4000) ' this will enable Timer after 2 seconds, then will tick every 4 seconds
                          'Timer2.Change(-1, -1) ' this is how it's disabled
                      End Sub
                      
                      Private Sub UpdateList()
                          Timer2.Change(-1, -1)
                          Using conn As New SqlConnection(parametrosCon)
                              conn.Open()
                              Using cmd = New SqlCommand("SELECT TOP 1 * FROM COLA WHERE docentry < 8654 and enviado = 0", conn)
                                  Using da As New SqlClient.SqlDataAdapter(cmd)
                                      da.SelectCommand = cmd
                                      da.Fill(DataSet, "Query")
                                      For Each fila As DataRow In DataSet.Tables(0).Rows
                                          Using cmdInner = New SqlCommand("UPDATE COLA SET enviado = 1 WHERE DOCENTRY = (@docEntry)  AND TIPO = (@tipodoc)", conn)
                                              cmd.Connection.Open()
                                              cmd.Parameters.AddWithValue("@docEntry", fila("docentry"))
                                              cmd.Parameters.AddWithValue("@tipodoc", fila("tipo"))
                                              cmd.ExecuteNonQuery()
                                              Dim factura As New FacturaCerificacion(fila("docentry"), fila("tipo"))
                                          End Using
                                      Next
                                  End Using
                              End Using
                              DoUiStuff(arguments) ' for example, if you need to update a GridView
                              DataSet.Tables("Query").Clear()
                          End Using
                      End Sub
                      
                      Private Sub DoUiStuff(arguments As Whatever)
                          If Me.InvokeRequired() Then
                              Me.Invoke(New Action(Of Whatever)(AddressOf DoUiStuff), arguments)
                          Else
                              ' do UI stuff with arguments
                          End If
                          Timer2.Change(2000, -1)
                      End Sub
                      
                      'Form overrides dispose to clean up the component list.
                      <System.Diagnostics.DebuggerNonUserCode()>
                      Protected Overrides Sub Dispose(ByVal disposing As Boolean)
                          Try
                              If disposing Then
                                  components?.Dispose()
                                  Timer2?.Dispose()
                              End If
                          Finally
                              MyBase.Dispose(disposing)
                          End Try
                      End Sub
                      

                      Server Client send/receive multiple clients

                      copy iconCopydownload iconDownload
                       static void Main(string[] args)
                      {
                          //---listen at the specified IP and port no.---
                          IPAddress localAdd = IPAddress.Parse(SERVER_IP);
                          TcpListener listener = new TcpListener(localAdd, PORT_NO);
                          Console.WriteLine("Listening...");
                          listener.Start();
                          while (true)
                          {
                              //---incoming client connected---
                              TcpClient client = listener.AcceptTcpClient();
                      
                              //---get the incoming data through a network stream---
                              NetworkStream nwStream = client.GetStream();
                              byte[] buffer = new byte[client.ReceiveBufferSize];
                      
                              //---read incoming stream---
                              int bytesRead = nwStream.Read(buffer, 0, client.ReceiveBufferSize);
                      
                              //---convert the data received into a string---
                              string dataReceived = Encoding.ASCII.GetString(buffer, 0, bytesRead);
                              Console.WriteLine("Received : " + dataReceived);
                      
                              //---write back the text to the client---
                              Console.WriteLine("Sending back : " + dataReceived);
                              nwStream.Write(buffer, 0, bytesRead);
                              client.Close();
                          }
                          listener.Stop();
                          Console.ReadLine();
                      }
                      

                      Migrate from NHibernate ids (hilo) to SQL auto ids in SQL Server

                      copy iconCopydownload iconDownload
                      CREATE SEQUENCE dbo.UserId 
                          AS INT
                          START WITH 1234 
                          INCREMENT BY 1   
                          ;  
                      
                      public int GetNextUserId(Session session)
                      {
                          var query = session.CreateSQLQuery("SELECT NEXT VALUE FOR dbo.UserId");
                          var result = query.UniqueResult();
                          return Convert.ToInt32(result);
                      }
                      
                      CREATE SEQUENCE dbo.UserId 
                          AS INT
                          START WITH 1234 
                          INCREMENT BY 1   
                          ;  
                      
                      public int GetNextUserId(Session session)
                      {
                          var query = session.CreateSQLQuery("SELECT NEXT VALUE FOR dbo.UserId");
                          var result = query.UniqueResult();
                          return Convert.ToInt32(result);
                      }
                      

                      opening text files in different folders and write to a csv cell

                      copy iconCopydownload iconDownload
                      import csv
                      import glob
                      import os
                      from pprint import pprint, pp
                      
                      
                      #root_folder = "/Users/hilo/Documents/digitization/ReleasedDataset_mp3"
                      root_folder = "/Stack Overflow/_test_files_root"
                      
                      #folders = ['Becton Dickinson_20170803',
                      #           'CIGNA Corp._20170202',
                      #           'The Bank of New York Mellon Corp._20170720',
                      #           'JPMorgan Chase & Co._20170714']
                      folders = ['Subfolder1', 'Subfolder3']
                      
                      filepaths = []
                      for subfolder in folders:
                          filepaths.extend(glob.glob(os.path.join(root_folder, subfolder, "*.txt")))
                      
                      if os.name == 'nt':  # Improve readability on Windows (optional)
                          filepaths[:] = [filepath.replace('\\', '/') for filepath in filepaths]
                      pprint(filepaths, width=128)  # Show files to be processed (optional)
                      
                      # Process the files.
                      with open('writeData.csv', mode='w', newline='') as new_file:
                          writer = csv.writer(new_file, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
                          for filename in filepaths:
                              # Take all sentences from a given file.
                              with open(filename, 'rt') as file:
                                  text = file.read()
                              # Write them into CSV along with filename.
                              writer.writerow((filename, text))
                      
                      print('-FINI-')
                      

                      is it possible to use wildcards for field names in mongodb?

                      copy iconCopydownload iconDownload
                      from pymongo import MongoClient
                      
                      db = MongoClient()['mydatabase']
                      
                      db.register.insert_many([{
                          'registers': [
                              {
                                  'field': 0,
                                  'hilo': 1,
                                  'lllo': 2
                              },
                              {
                                  'field': 1,
                                  'hilo': 2,
                                  'lllo': 3
                              },
                              {
                                  'field': 2,
                                  'hilo': 3,
                                  'lllo': 4
                              }
                          ]}])
                      
                      print(db.register.find_one({}, {'registers': {'$elemMatch': {'field': 1}}}))
                      
                      {'_id': ObjectId('60b64e57c3214d73c390557b'), 'registers': [{'field': 1, 'hilo': 2, 'lllo': 3}]}
                      
                      from pymongo import MongoClient
                      
                      db = MongoClient()['mydatabase']
                      
                      db.register.insert_many([{
                          'registers': [
                              {
                                  'field': 0,
                                  'hilo': 1,
                                  'lllo': 2
                              },
                              {
                                  'field': 1,
                                  'hilo': 2,
                                  'lllo': 3
                              },
                              {
                                  'field': 2,
                                  'hilo': 3,
                                  'lllo': 4
                              }
                          ]}])
                      
                      print(db.register.find_one({}, {'registers': {'$elemMatch': {'field': 1}}}))
                      
                      {'_id': ObjectId('60b64e57c3214d73c390557b'), 'registers': [{'field': 1, 'hilo': 2, 'lllo': 3}]}
                      

                      Null values with PIVOT in SQL Server

                      copy iconCopydownload iconDownload
                      Select *
                       From  (
                              Select ARTICULO
                                    ,CANTIDAD
                                    ,NOMBREDIA
                              from produccion
                             ) src
                       Pivot (sum(CANTIDAD) for NOMBREDIA in ([Domingo],[Lunes],[Martes],[Miércoles],[Jueves],[Sábado],[Viernes])) pvt
                      
                      Declare @SQL nvarchar(max) = N'
                      Select *
                      From (
                              Select ARTICULO
                                    ,CANTIDAD
                                    ,NOMBREDIA
                              from produccion
                           ) A
                       Pivot (sum(CANTIDAD) For [NOMBREDIA] in (' + Stuff((Select Distinct ',' + QuoteName(NOMBREDIA) From  produccion Order By 1 For XML Path('')),1,1,'')  + ') ) p
                      '
                      Exec(@SQL);
                      
                      Select *
                       From  (
                              Select ARTICULO
                                    ,CANTIDAD
                                    ,NOMBREDIA
                              from produccion
                             ) src
                       Pivot (sum(CANTIDAD) for NOMBREDIA in ([Domingo],[Lunes],[Martes],[Miércoles],[Jueves],[Sábado],[Viernes])) pvt
                      
                      Declare @SQL nvarchar(max) = N'
                      Select *
                      From (
                              Select ARTICULO
                                    ,CANTIDAD
                                    ,NOMBREDIA
                              from produccion
                           ) A
                       Pivot (sum(CANTIDAD) For [NOMBREDIA] in (' + Stuff((Select Distinct ',' + QuoteName(NOMBREDIA) From  produccion Order By 1 For XML Path('')),1,1,'')  + ') ) p
                      '
                      Exec(@SQL);
                      

                      Community Discussions

                      Trending Discussions on Hilo
                      • Navbar with margin wont be set to &quot;0&quot;
                      • C# Json extract a list of values from a Json list or array
                      • how to turn Csv data to dictionary
                      • Getting simple table to a word list with Kable
                      • Freeze UI with Threads
                      • my rope stretches infinitely when i put an object on it
                      • Server Client send/receive multiple clients
                      • Migrate from NHibernate ids (hilo) to SQL auto ids in SQL Server
                      • opening text files in different folders and write to a csv cell
                      • is it possible to use wildcards for field names in mongodb?
                      Trending Discussions on Hilo

                      QUESTION

                      Navbar with margin wont be set to &quot;0&quot;

                      Asked 2022-Mar-11 at 09:35

                      So I'm working on a website and I wanted to try including bootstrap in it. I've used the navbar tags and some custom CSS but I can't remove the margin. So basically the navbar looks weird because of it.

                      Heres the code:

                      Html:

                      
                      <!DOCTYPE html>
                      <html lang="en">
                          <head>
                              <title>
                                  Hilo | Home</title>
                              <meta charset="utf-8">
                              <meta name="viewport" content="width=device-width, initial-scale=1">
                              <link rel="stylesheet" href="/styles.css">
                              <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
                              <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
                              <link rel="stylesheet" href="https://cdn.linearicons.com/free/1.0.0/icon-font.min.css">
                          </head>
                          <body class="body-fr">
                              <nav class="navbar" role="navigation">
                                  <div class="container-fluid nav-container-fr">
                                      <ul class="nav-nav">
                                          <li class="nav-item-fr"><a href="#" class="nav-link nav-size">Home</a></li>
                                          <li class="nav-item-fr"><a href="#" class="nav-link nav-size">Streams</a></li>
                                          <li class="nav-item-fr"><a href="#" class="nav-link nav-size">Followed</a></li>
                                          <li class="nav-item-fr nav-icon-fr"><a href="#" class="nav-link"><i class="lnr lnr-user fs-40"></i></a></li>
                                          <li class="nav-item-fr nav-cog-fr"><a href="#" class="nav-link"><i class="lnr lnr-cog fs-40"></i></a></li>
                                      </ul>
                                  </div>
                              </nav>
                          </body> 
                      </html>
                      
                      

                      Css:

                      
                      * {
                          margin: 0;
                          padding: 0;
                      }
                      
                      .body-fr {
                          background-color: #333;
                      }
                      
                      nav {
                          margin: 0;
                          padding: 0;
                          width: 100%;
                      }
                      
                      .navbar {
                          margin: 0px;
                          padding: 0px;
                      }
                      
                      .nav-container-fr {
                          width: 100%;
                          display: flex;
                          justify-content: space-around;
                          text-align: center;
                          background-color: #222;
                      }
                      
                      .nav-nav {
                          justify-content: space-around;
                          list-style-type: none;
                          list-style: none;
                          display: inline;
                          margin: auto;
                          margin-bottom: 5px;
                      }
                      
                      .nav-size {
                          font-size: 30px;
                      }
                      
                      .nav-item-fr {
                          text-align: center;
                          display: inline-flex;
                          margin: 0 30px;
                      }
                      
                      .nav-icon-fr {
                          margin-top: 5px;
                          margin-left: 470px;
                          margin-right: -40px;
                      }
                      
                      .nav-cog-fr {
                          margin-right: -50px;
                      }
                      
                      .fs-20 {
                          font-size: 20px;
                      }
                      
                      .fs-40 {
                          font-size: 40px;
                      }
                      
                      .fs-60 {
                          font-size: 60px;
                      }
                      
                      .fs-80 {
                          font-size: 80px;
                      }
                      
                      .fs-100 {
                          font-size: 100px;
                      }
                      
                      .fs-120 {
                          font-size: 120px;
                      }
                      
                      

                      Can I please get some help? And please ignore my messy code I'm still new t bootstrap and I don't really feel like fixing the CSS right now.

                      ANSWER

                      Answered 2022-Mar-11 at 09:35

                      You could try setting:

                      margin: 0 !important;
                      

                      Or you could get more specific with the selector.

                      If you are in Chrome for instance, and right click on the element in question, you should see that it has a more specific selector.

                      Just as an example:

                      html body nav {
                          margin: 20px;
                      }
                      

                      Is more specific than:

                      nav {
                          margin: 0;
                      }
                      

                      So a margin of 20px would be applied in this case.

                      Source https://stackoverflow.com/questions/71436300

                      Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                      Vulnerabilities

                      No vulnerabilities reported

                      Install Hilo

                      run npm install to install all dependencies.
                      run gulp to build source.
                      run gulp extensions to build extensions source.
                      run gulp doc to build API documentation.
                      run gulp test to run tests.
                      multiple module styles can be found in build folder, involving CMD, AMD, CommonJS, KMD.

                      Support

                      Get started by reading docs/api-en/index.html.

                      DOWNLOAD this Library from

                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      Share this Page

                      share link
                      Reuse Pre-built Kits with Hilo
                      Consider Popular Game Engine Libraries
                      Try Top Libraries by hiloteam
                      Compare Game Engine Libraries with Highest Support
                      Compare Game Engine Libraries with Highest Quality
                      Compare Game Engine Libraries with Highest Security
                      Compare Game Engine Libraries with Permissive License
                      Compare Game Engine Libraries with Highest Reuse
                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      • © 2022 Open Weaver Inc.