microsoft / sfs-client

Simple File Solution (SFS) Client
MIT License
15 stars 13 forks source link

Adding AppFileEntity #143

Closed arthuraraujo-msft closed 8 months ago

arthuraraujo-msft commented 8 months ago

Helps #50

Following #118, now adding an AppFileEntity.

App File Entity:

{
    "Url": "<url>",
    "ApplicabilityDetails": {
      "Architectures": [
        "<arch>"
      ],
      "PlatformApplicabilityForPackage": [
        "<applic>"
      ]
    },
    "FileId": "<id>",
    "FileMoniker": "<moniker>",
    "SizeInBytes": "<unsigned>",
    "Hashes": {
      "Sha1": "<hash>"
    },
    "DeliveryOptimization": { "<currently ignored>" }
  }

The API implementations won't be aware of the types, that will only be taken care of during parsing from the server, and during transformation in the final step.