diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 112e32b3..4ff26209 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "6.0.0" + ".": "6.0.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 4355b752..14a49efd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 48 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc/imagekit-diversion-fecead543ea79ea907490f2625f2f06df319934a03458b182dce84c44d552dbd.yml -openapi_spec_hash: 964672a4901296fe54bf272bbdca0166 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc/imagekit-diversion-ebb91d3a579cbd08d5af02b57042964052e28b703bc0c1ab73270130a7575e89.yml +openapi_spec_hash: 86c6aef81fd1ddb2a989da3155364231 config_hash: 66121ffadb78b9866f6b853f19b11f3d diff --git a/CHANGELOG.md b/CHANGELOG.md index eaacb5e3..6bd57657 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 6.0.1 (2026-05-28) + +Full Changelog: [v6.0.0...v6.0.1](https://github.com/imagekit-developer/imagekit-dotnet/compare/v6.0.0...v6.0.1) + +### Bug Fixes + +* **metadata:** correct EXIF/GPS field types and add missing properties ([ecd9c84](https://github.com/imagekit-developer/imagekit-dotnet/commit/ecd9c84b288b0fae65a3edc186e50b891fb0d325)) + ## 6.0.0 (2026-05-18) Full Changelog: [v0.0.1...v6.0.0](https://github.com/imagekit-developer/imagekit-dotnet/compare/v0.0.1...v6.0.0) diff --git a/src/Imagekit.Tests/Models/Beta/V2/Files/FileUploadResponseTest.cs b/src/Imagekit.Tests/Models/Beta/V2/Files/FileUploadResponseTest.cs index 1b1a6930..e9481704 100644 --- a/src/Imagekit.Tests/Models/Beta/V2/Files/FileUploadResponseTest.cs +++ b/src/Imagekit.Tests/Models/Beta/V2/Files/FileUploadResponseTest.cs @@ -62,6 +62,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -77,22 +78,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -214,6 +238,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -229,22 +254,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -428,6 +476,7 @@ public void SerializationRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -443,22 +492,45 @@ public void SerializationRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -594,6 +666,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -609,22 +682,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -753,6 +849,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -768,22 +865,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -967,6 +1087,7 @@ public void Validation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -982,22 +1103,45 @@ public void Validation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1335,6 +1479,7 @@ public void OptionalNullablePropertiesUnsetAreNotSet_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1350,22 +1495,45 @@ public void OptionalNullablePropertiesUnsetAreNotSet_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1489,6 +1657,7 @@ public void OptionalNullablePropertiesUnsetValidation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1504,22 +1673,45 @@ public void OptionalNullablePropertiesUnsetValidation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1638,6 +1830,7 @@ public void OptionalNullablePropertiesSetToNullAreSetToNull_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1653,22 +1846,45 @@ public void OptionalNullablePropertiesSetToNullAreSetToNull_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1796,6 +2012,7 @@ public void OptionalNullablePropertiesSetToNullValidation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1811,22 +2028,45 @@ public void OptionalNullablePropertiesSetToNullValidation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1959,6 +2199,7 @@ public void CopyConstructor_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1974,22 +2215,45 @@ public void CopyConstructor_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", diff --git a/src/Imagekit.Tests/Models/Files/FileMetadataTest.cs b/src/Imagekit.Tests/Models/Files/FileMetadataTest.cs index a296b95d..5dd9802d 100644 --- a/src/Imagekit.Tests/Models/Files/FileMetadataTest.cs +++ b/src/Imagekit.Tests/Models/Files/FileMetadataTest.cs @@ -21,6 +21,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -36,22 +37,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -101,6 +125,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -116,22 +141,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -201,6 +249,7 @@ public void SerializationRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -216,22 +265,45 @@ public void SerializationRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -295,6 +367,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -310,22 +383,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -382,6 +478,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -397,22 +494,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -482,6 +602,7 @@ public void Validation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -497,22 +618,45 @@ public void Validation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -690,6 +834,7 @@ public void CopyConstructor_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -705,22 +850,45 @@ public void CopyConstructor_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -777,6 +945,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -792,22 +961,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -841,6 +1033,7 @@ public void FieldRoundtrip_Works() ExifExif expectedExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -856,22 +1049,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }; - Gps expectedGps = new() { GpsVersionID = [0] }; + Gps expectedGps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }; Image expectedImage = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -924,6 +1140,7 @@ public void SerializationRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -939,22 +1156,45 @@ public void SerializationRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -999,6 +1239,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1014,22 +1255,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1067,6 +1331,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifExif expectedExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1082,22 +1347,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }; - Gps expectedGps = new() { GpsVersionID = [0] }; + Gps expectedGps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }; Image expectedImage = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1150,6 +1438,7 @@ public void Validation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1165,22 +1454,45 @@ public void Validation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1294,6 +1606,7 @@ public void CopyConstructor_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1309,22 +1622,45 @@ public void CopyConstructor_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1369,6 +1705,7 @@ public void FieldRoundtrip_Works() var model = new ExifExif { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1384,19 +1721,27 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }; double expectedApertureValue = 0; + double expectedBrightnessValue = 0; long expectedColorSpace = 0; string expectedCreateDate = "CreateDate"; long expectedCustomRendered = 0; @@ -1411,19 +1756,27 @@ public void FieldRoundtrip_Works() long expectedFlash = 0; string expectedFlashpixVersion = "FlashpixVersion"; double expectedFNumber = 0; - long expectedFocalLength = 0; + double expectedFocalLength = 0; + long expectedFocalLengthIn35mmFormat = 0; long expectedFocalPlaneResolutionUnit = 0; double expectedFocalPlaneXResolution = 0; double expectedFocalPlaneYResolution = 0; long expectedInteropOffset = 0; long expectedIso = 0; + string expectedLensModel = "LensModel"; + long expectedLightSource = 0; + double expectedMaxApertureValue = 0; long expectedMeteringMode = 0; long expectedSceneCaptureType = 0; + string expectedSceneType = "SceneType"; + long expectedSensingMethod = 0; double expectedShutterSpeedValue = 0; string expectedSubSecTime = "SubSecTime"; + string expectedUserComment = "UserComment"; long expectedWhiteBalance = 0; Assert.Equal(expectedApertureValue, model.ApertureValue); + Assert.Equal(expectedBrightnessValue, model.BrightnessValue); Assert.Equal(expectedColorSpace, model.ColorSpace); Assert.Equal(expectedCreateDate, model.CreateDate); Assert.Equal(expectedCustomRendered, model.CustomRendered); @@ -1439,15 +1792,22 @@ public void FieldRoundtrip_Works() Assert.Equal(expectedFlashpixVersion, model.FlashpixVersion); Assert.Equal(expectedFNumber, model.FNumber); Assert.Equal(expectedFocalLength, model.FocalLength); + Assert.Equal(expectedFocalLengthIn35mmFormat, model.FocalLengthIn35mmFormat); Assert.Equal(expectedFocalPlaneResolutionUnit, model.FocalPlaneResolutionUnit); Assert.Equal(expectedFocalPlaneXResolution, model.FocalPlaneXResolution); Assert.Equal(expectedFocalPlaneYResolution, model.FocalPlaneYResolution); Assert.Equal(expectedInteropOffset, model.InteropOffset); Assert.Equal(expectedIso, model.Iso); + Assert.Equal(expectedLensModel, model.LensModel); + Assert.Equal(expectedLightSource, model.LightSource); + Assert.Equal(expectedMaxApertureValue, model.MaxApertureValue); Assert.Equal(expectedMeteringMode, model.MeteringMode); Assert.Equal(expectedSceneCaptureType, model.SceneCaptureType); + Assert.Equal(expectedSceneType, model.SceneType); + Assert.Equal(expectedSensingMethod, model.SensingMethod); Assert.Equal(expectedShutterSpeedValue, model.ShutterSpeedValue); Assert.Equal(expectedSubSecTime, model.SubSecTime); + Assert.Equal(expectedUserComment, model.UserComment); Assert.Equal(expectedWhiteBalance, model.WhiteBalance); } @@ -1457,6 +1817,7 @@ public void SerializationRoundtrip_Works() var model = new ExifExif { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1472,15 +1833,22 @@ public void SerializationRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }; @@ -1496,6 +1864,7 @@ public void FieldRoundtripThroughSerialization_Works() var model = new ExifExif { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1511,15 +1880,22 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }; @@ -1531,6 +1907,7 @@ public void FieldRoundtripThroughSerialization_Works() Assert.NotNull(deserialized); double expectedApertureValue = 0; + double expectedBrightnessValue = 0; long expectedColorSpace = 0; string expectedCreateDate = "CreateDate"; long expectedCustomRendered = 0; @@ -1545,19 +1922,27 @@ public void FieldRoundtripThroughSerialization_Works() long expectedFlash = 0; string expectedFlashpixVersion = "FlashpixVersion"; double expectedFNumber = 0; - long expectedFocalLength = 0; + double expectedFocalLength = 0; + long expectedFocalLengthIn35mmFormat = 0; long expectedFocalPlaneResolutionUnit = 0; double expectedFocalPlaneXResolution = 0; double expectedFocalPlaneYResolution = 0; long expectedInteropOffset = 0; long expectedIso = 0; + string expectedLensModel = "LensModel"; + long expectedLightSource = 0; + double expectedMaxApertureValue = 0; long expectedMeteringMode = 0; long expectedSceneCaptureType = 0; + string expectedSceneType = "SceneType"; + long expectedSensingMethod = 0; double expectedShutterSpeedValue = 0; string expectedSubSecTime = "SubSecTime"; + string expectedUserComment = "UserComment"; long expectedWhiteBalance = 0; Assert.Equal(expectedApertureValue, deserialized.ApertureValue); + Assert.Equal(expectedBrightnessValue, deserialized.BrightnessValue); Assert.Equal(expectedColorSpace, deserialized.ColorSpace); Assert.Equal(expectedCreateDate, deserialized.CreateDate); Assert.Equal(expectedCustomRendered, deserialized.CustomRendered); @@ -1573,15 +1958,22 @@ public void FieldRoundtripThroughSerialization_Works() Assert.Equal(expectedFlashpixVersion, deserialized.FlashpixVersion); Assert.Equal(expectedFNumber, deserialized.FNumber); Assert.Equal(expectedFocalLength, deserialized.FocalLength); + Assert.Equal(expectedFocalLengthIn35mmFormat, deserialized.FocalLengthIn35mmFormat); Assert.Equal(expectedFocalPlaneResolutionUnit, deserialized.FocalPlaneResolutionUnit); Assert.Equal(expectedFocalPlaneXResolution, deserialized.FocalPlaneXResolution); Assert.Equal(expectedFocalPlaneYResolution, deserialized.FocalPlaneYResolution); Assert.Equal(expectedInteropOffset, deserialized.InteropOffset); Assert.Equal(expectedIso, deserialized.Iso); + Assert.Equal(expectedLensModel, deserialized.LensModel); + Assert.Equal(expectedLightSource, deserialized.LightSource); + Assert.Equal(expectedMaxApertureValue, deserialized.MaxApertureValue); Assert.Equal(expectedMeteringMode, deserialized.MeteringMode); Assert.Equal(expectedSceneCaptureType, deserialized.SceneCaptureType); + Assert.Equal(expectedSceneType, deserialized.SceneType); + Assert.Equal(expectedSensingMethod, deserialized.SensingMethod); Assert.Equal(expectedShutterSpeedValue, deserialized.ShutterSpeedValue); Assert.Equal(expectedSubSecTime, deserialized.SubSecTime); + Assert.Equal(expectedUserComment, deserialized.UserComment); Assert.Equal(expectedWhiteBalance, deserialized.WhiteBalance); } @@ -1591,6 +1983,7 @@ public void Validation_Works() var model = new ExifExif { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1606,15 +1999,22 @@ public void Validation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }; @@ -1628,6 +2028,8 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works() Assert.Null(model.ApertureValue); Assert.False(model.RawData.ContainsKey("ApertureValue")); + Assert.Null(model.BrightnessValue); + Assert.False(model.RawData.ContainsKey("BrightnessValue")); Assert.Null(model.ColorSpace); Assert.False(model.RawData.ContainsKey("ColorSpace")); Assert.Null(model.CreateDate); @@ -1658,6 +2060,8 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works() Assert.False(model.RawData.ContainsKey("FNumber")); Assert.Null(model.FocalLength); Assert.False(model.RawData.ContainsKey("FocalLength")); + Assert.Null(model.FocalLengthIn35mmFormat); + Assert.False(model.RawData.ContainsKey("FocalLengthIn35mmFormat")); Assert.Null(model.FocalPlaneResolutionUnit); Assert.False(model.RawData.ContainsKey("FocalPlaneResolutionUnit")); Assert.Null(model.FocalPlaneXResolution); @@ -1668,14 +2072,26 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works() Assert.False(model.RawData.ContainsKey("InteropOffset")); Assert.Null(model.Iso); Assert.False(model.RawData.ContainsKey("ISO")); + Assert.Null(model.LensModel); + Assert.False(model.RawData.ContainsKey("LensModel")); + Assert.Null(model.LightSource); + Assert.False(model.RawData.ContainsKey("LightSource")); + Assert.Null(model.MaxApertureValue); + Assert.False(model.RawData.ContainsKey("MaxApertureValue")); Assert.Null(model.MeteringMode); Assert.False(model.RawData.ContainsKey("MeteringMode")); Assert.Null(model.SceneCaptureType); Assert.False(model.RawData.ContainsKey("SceneCaptureType")); + Assert.Null(model.SceneType); + Assert.False(model.RawData.ContainsKey("SceneType")); + Assert.Null(model.SensingMethod); + Assert.False(model.RawData.ContainsKey("SensingMethod")); Assert.Null(model.ShutterSpeedValue); Assert.False(model.RawData.ContainsKey("ShutterSpeedValue")); Assert.Null(model.SubSecTime); Assert.False(model.RawData.ContainsKey("SubSecTime")); + Assert.Null(model.UserComment); + Assert.False(model.RawData.ContainsKey("UserComment")); Assert.Null(model.WhiteBalance); Assert.False(model.RawData.ContainsKey("WhiteBalance")); } @@ -1695,6 +2111,7 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works() { // Null should be interpreted as omitted for these properties ApertureValue = null, + BrightnessValue = null, ColorSpace = null, CreateDate = null, CustomRendered = null, @@ -1710,20 +2127,29 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works() FlashpixVersion = null, FNumber = null, FocalLength = null, + FocalLengthIn35mmFormat = null, FocalPlaneResolutionUnit = null, FocalPlaneXResolution = null, FocalPlaneYResolution = null, InteropOffset = null, Iso = null, + LensModel = null, + LightSource = null, + MaxApertureValue = null, MeteringMode = null, SceneCaptureType = null, + SceneType = null, + SensingMethod = null, ShutterSpeedValue = null, SubSecTime = null, + UserComment = null, WhiteBalance = null, }; Assert.Null(model.ApertureValue); Assert.False(model.RawData.ContainsKey("ApertureValue")); + Assert.Null(model.BrightnessValue); + Assert.False(model.RawData.ContainsKey("BrightnessValue")); Assert.Null(model.ColorSpace); Assert.False(model.RawData.ContainsKey("ColorSpace")); Assert.Null(model.CreateDate); @@ -1754,6 +2180,8 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works() Assert.False(model.RawData.ContainsKey("FNumber")); Assert.Null(model.FocalLength); Assert.False(model.RawData.ContainsKey("FocalLength")); + Assert.Null(model.FocalLengthIn35mmFormat); + Assert.False(model.RawData.ContainsKey("FocalLengthIn35mmFormat")); Assert.Null(model.FocalPlaneResolutionUnit); Assert.False(model.RawData.ContainsKey("FocalPlaneResolutionUnit")); Assert.Null(model.FocalPlaneXResolution); @@ -1764,14 +2192,26 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works() Assert.False(model.RawData.ContainsKey("InteropOffset")); Assert.Null(model.Iso); Assert.False(model.RawData.ContainsKey("ISO")); + Assert.Null(model.LensModel); + Assert.False(model.RawData.ContainsKey("LensModel")); + Assert.Null(model.LightSource); + Assert.False(model.RawData.ContainsKey("LightSource")); + Assert.Null(model.MaxApertureValue); + Assert.False(model.RawData.ContainsKey("MaxApertureValue")); Assert.Null(model.MeteringMode); Assert.False(model.RawData.ContainsKey("MeteringMode")); Assert.Null(model.SceneCaptureType); Assert.False(model.RawData.ContainsKey("SceneCaptureType")); + Assert.Null(model.SceneType); + Assert.False(model.RawData.ContainsKey("SceneType")); + Assert.Null(model.SensingMethod); + Assert.False(model.RawData.ContainsKey("SensingMethod")); Assert.Null(model.ShutterSpeedValue); Assert.False(model.RawData.ContainsKey("ShutterSpeedValue")); Assert.Null(model.SubSecTime); Assert.False(model.RawData.ContainsKey("SubSecTime")); + Assert.Null(model.UserComment); + Assert.False(model.RawData.ContainsKey("UserComment")); Assert.Null(model.WhiteBalance); Assert.False(model.RawData.ContainsKey("WhiteBalance")); } @@ -1783,6 +2223,7 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works() { // Null should be interpreted as omitted for these properties ApertureValue = null, + BrightnessValue = null, ColorSpace = null, CreateDate = null, CustomRendered = null, @@ -1798,15 +2239,22 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works() FlashpixVersion = null, FNumber = null, FocalLength = null, + FocalLengthIn35mmFormat = null, FocalPlaneResolutionUnit = null, FocalPlaneXResolution = null, FocalPlaneYResolution = null, InteropOffset = null, Iso = null, + LensModel = null, + LightSource = null, + MaxApertureValue = null, MeteringMode = null, SceneCaptureType = null, + SceneType = null, + SensingMethod = null, ShutterSpeedValue = null, SubSecTime = null, + UserComment = null, WhiteBalance = null, }; @@ -1819,6 +2267,7 @@ public void CopyConstructor_Works() var model = new ExifExif { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1834,15 +2283,22 @@ public void CopyConstructor_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }; @@ -1857,10 +2313,58 @@ public class GpsTest : TestBase [Fact] public void FieldRoundtrip_Works() { - var model = new Gps { GpsVersionID = [0] }; + var model = new Gps + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }; + double expectedGpsAltitude = 0; + long expectedGpsAltitudeRef = 0; + string expectedGpsDateStamp = "GPSDateStamp"; + double expectedGpsImgDirection = 0; + string expectedGpsImgDirectionRef = "GPSImgDirectionRef"; + List expectedGpsLatitude = [0]; + string expectedGpsLatitudeRef = "GPSLatitudeRef"; + List expectedGpsLongitude = [0]; + string expectedGpsLongitudeRef = "GPSLongitudeRef"; + List expectedGpsTimeStamp = [0]; List expectedGpsVersionID = [0]; + Assert.Equal(expectedGpsAltitude, model.GpsAltitude); + Assert.Equal(expectedGpsAltitudeRef, model.GpsAltitudeRef); + Assert.Equal(expectedGpsDateStamp, model.GpsDateStamp); + Assert.Equal(expectedGpsImgDirection, model.GpsImgDirection); + Assert.Equal(expectedGpsImgDirectionRef, model.GpsImgDirectionRef); + Assert.NotNull(model.GpsLatitude); + Assert.Equal(expectedGpsLatitude.Count, model.GpsLatitude.Count); + for (int i = 0; i < expectedGpsLatitude.Count; i++) + { + Assert.Equal(expectedGpsLatitude[i], model.GpsLatitude[i]); + } + Assert.Equal(expectedGpsLatitudeRef, model.GpsLatitudeRef); + Assert.NotNull(model.GpsLongitude); + Assert.Equal(expectedGpsLongitude.Count, model.GpsLongitude.Count); + for (int i = 0; i < expectedGpsLongitude.Count; i++) + { + Assert.Equal(expectedGpsLongitude[i], model.GpsLongitude[i]); + } + Assert.Equal(expectedGpsLongitudeRef, model.GpsLongitudeRef); + Assert.NotNull(model.GpsTimeStamp); + Assert.Equal(expectedGpsTimeStamp.Count, model.GpsTimeStamp.Count); + for (int i = 0; i < expectedGpsTimeStamp.Count; i++) + { + Assert.Equal(expectedGpsTimeStamp[i], model.GpsTimeStamp[i]); + } Assert.NotNull(model.GpsVersionID); Assert.Equal(expectedGpsVersionID.Count, model.GpsVersionID.Count); for (int i = 0; i < expectedGpsVersionID.Count; i++) @@ -1872,7 +2376,20 @@ public void FieldRoundtrip_Works() [Fact] public void SerializationRoundtrip_Works() { - var model = new Gps { GpsVersionID = [0] }; + var model = new Gps + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }; string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions); var deserialized = JsonSerializer.Deserialize(json, ModelBase.SerializerOptions); @@ -1883,14 +2400,62 @@ public void SerializationRoundtrip_Works() [Fact] public void FieldRoundtripThroughSerialization_Works() { - var model = new Gps { GpsVersionID = [0] }; + var model = new Gps + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }; string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions); var deserialized = JsonSerializer.Deserialize(element, ModelBase.SerializerOptions); Assert.NotNull(deserialized); + double expectedGpsAltitude = 0; + long expectedGpsAltitudeRef = 0; + string expectedGpsDateStamp = "GPSDateStamp"; + double expectedGpsImgDirection = 0; + string expectedGpsImgDirectionRef = "GPSImgDirectionRef"; + List expectedGpsLatitude = [0]; + string expectedGpsLatitudeRef = "GPSLatitudeRef"; + List expectedGpsLongitude = [0]; + string expectedGpsLongitudeRef = "GPSLongitudeRef"; + List expectedGpsTimeStamp = [0]; List expectedGpsVersionID = [0]; + Assert.Equal(expectedGpsAltitude, deserialized.GpsAltitude); + Assert.Equal(expectedGpsAltitudeRef, deserialized.GpsAltitudeRef); + Assert.Equal(expectedGpsDateStamp, deserialized.GpsDateStamp); + Assert.Equal(expectedGpsImgDirection, deserialized.GpsImgDirection); + Assert.Equal(expectedGpsImgDirectionRef, deserialized.GpsImgDirectionRef); + Assert.NotNull(deserialized.GpsLatitude); + Assert.Equal(expectedGpsLatitude.Count, deserialized.GpsLatitude.Count); + for (int i = 0; i < expectedGpsLatitude.Count; i++) + { + Assert.Equal(expectedGpsLatitude[i], deserialized.GpsLatitude[i]); + } + Assert.Equal(expectedGpsLatitudeRef, deserialized.GpsLatitudeRef); + Assert.NotNull(deserialized.GpsLongitude); + Assert.Equal(expectedGpsLongitude.Count, deserialized.GpsLongitude.Count); + for (int i = 0; i < expectedGpsLongitude.Count; i++) + { + Assert.Equal(expectedGpsLongitude[i], deserialized.GpsLongitude[i]); + } + Assert.Equal(expectedGpsLongitudeRef, deserialized.GpsLongitudeRef); + Assert.NotNull(deserialized.GpsTimeStamp); + Assert.Equal(expectedGpsTimeStamp.Count, deserialized.GpsTimeStamp.Count); + for (int i = 0; i < expectedGpsTimeStamp.Count; i++) + { + Assert.Equal(expectedGpsTimeStamp[i], deserialized.GpsTimeStamp[i]); + } Assert.NotNull(deserialized.GpsVersionID); Assert.Equal(expectedGpsVersionID.Count, deserialized.GpsVersionID.Count); for (int i = 0; i < expectedGpsVersionID.Count; i++) @@ -1902,7 +2467,20 @@ public void FieldRoundtripThroughSerialization_Works() [Fact] public void Validation_Works() { - var model = new Gps { GpsVersionID = [0] }; + var model = new Gps + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }; model.Validate(); } @@ -1912,6 +2490,26 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works() { var model = new Gps { }; + Assert.Null(model.GpsAltitude); + Assert.False(model.RawData.ContainsKey("GPSAltitude")); + Assert.Null(model.GpsAltitudeRef); + Assert.False(model.RawData.ContainsKey("GPSAltitudeRef")); + Assert.Null(model.GpsDateStamp); + Assert.False(model.RawData.ContainsKey("GPSDateStamp")); + Assert.Null(model.GpsImgDirection); + Assert.False(model.RawData.ContainsKey("GPSImgDirection")); + Assert.Null(model.GpsImgDirectionRef); + Assert.False(model.RawData.ContainsKey("GPSImgDirectionRef")); + Assert.Null(model.GpsLatitude); + Assert.False(model.RawData.ContainsKey("GPSLatitude")); + Assert.Null(model.GpsLatitudeRef); + Assert.False(model.RawData.ContainsKey("GPSLatitudeRef")); + Assert.Null(model.GpsLongitude); + Assert.False(model.RawData.ContainsKey("GPSLongitude")); + Assert.Null(model.GpsLongitudeRef); + Assert.False(model.RawData.ContainsKey("GPSLongitudeRef")); + Assert.Null(model.GpsTimeStamp); + Assert.False(model.RawData.ContainsKey("GPSTimeStamp")); Assert.Null(model.GpsVersionID); Assert.False(model.RawData.ContainsKey("GPSVersionID")); } @@ -1930,9 +2528,39 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works() var model = new Gps { // Null should be interpreted as omitted for these properties + GpsAltitude = null, + GpsAltitudeRef = null, + GpsDateStamp = null, + GpsImgDirection = null, + GpsImgDirectionRef = null, + GpsLatitude = null, + GpsLatitudeRef = null, + GpsLongitude = null, + GpsLongitudeRef = null, + GpsTimeStamp = null, GpsVersionID = null, }; + Assert.Null(model.GpsAltitude); + Assert.False(model.RawData.ContainsKey("GPSAltitude")); + Assert.Null(model.GpsAltitudeRef); + Assert.False(model.RawData.ContainsKey("GPSAltitudeRef")); + Assert.Null(model.GpsDateStamp); + Assert.False(model.RawData.ContainsKey("GPSDateStamp")); + Assert.Null(model.GpsImgDirection); + Assert.False(model.RawData.ContainsKey("GPSImgDirection")); + Assert.Null(model.GpsImgDirectionRef); + Assert.False(model.RawData.ContainsKey("GPSImgDirectionRef")); + Assert.Null(model.GpsLatitude); + Assert.False(model.RawData.ContainsKey("GPSLatitude")); + Assert.Null(model.GpsLatitudeRef); + Assert.False(model.RawData.ContainsKey("GPSLatitudeRef")); + Assert.Null(model.GpsLongitude); + Assert.False(model.RawData.ContainsKey("GPSLongitude")); + Assert.Null(model.GpsLongitudeRef); + Assert.False(model.RawData.ContainsKey("GPSLongitudeRef")); + Assert.Null(model.GpsTimeStamp); + Assert.False(model.RawData.ContainsKey("GPSTimeStamp")); Assert.Null(model.GpsVersionID); Assert.False(model.RawData.ContainsKey("GPSVersionID")); } @@ -1943,6 +2571,16 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works() var model = new Gps { // Null should be interpreted as omitted for these properties + GpsAltitude = null, + GpsAltitudeRef = null, + GpsDateStamp = null, + GpsImgDirection = null, + GpsImgDirectionRef = null, + GpsLatitude = null, + GpsLatitudeRef = null, + GpsLongitude = null, + GpsLongitudeRef = null, + GpsTimeStamp = null, GpsVersionID = null, }; @@ -1952,7 +2590,20 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works() [Fact] public void CopyConstructor_Works() { - var model = new Gps { GpsVersionID = [0] }; + var model = new Gps + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }; Gps copied = new(model); @@ -1967,8 +2618,11 @@ public void FieldRoundtrip_Works() { var model = new Image { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1980,20 +2634,26 @@ public void FieldRoundtrip_Works() YResolution = 0, }; + string expectedArtist = "Artist"; + string expectedCopyright = "Copyright"; long expectedExifOffset = 0; long expectedGpsInfo = 0; + string expectedImageDescription = "ImageDescription"; string expectedMake = "Make"; string expectedModel = "Model"; string expectedModifyDate = "ModifyDate"; long expectedOrientation = 0; long expectedResolutionUnit = 0; string expectedSoftware = "Software"; - long expectedXResolution = 0; + double expectedXResolution = 0; long expectedYCbCrPositioning = 0; - long expectedYResolution = 0; + double expectedYResolution = 0; + Assert.Equal(expectedArtist, model.Artist); + Assert.Equal(expectedCopyright, model.Copyright); Assert.Equal(expectedExifOffset, model.ExifOffset); Assert.Equal(expectedGpsInfo, model.GpsInfo); + Assert.Equal(expectedImageDescription, model.ImageDescription); Assert.Equal(expectedMake, model.Make); Assert.Equal(expectedModel, model.Model); Assert.Equal(expectedModifyDate, model.ModifyDate); @@ -2010,8 +2670,11 @@ public void SerializationRoundtrip_Works() { var model = new Image { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -2034,8 +2697,11 @@ public void FieldRoundtripThroughSerialization_Works() { var model = new Image { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -2051,20 +2717,26 @@ public void FieldRoundtripThroughSerialization_Works() var deserialized = JsonSerializer.Deserialize(element, ModelBase.SerializerOptions); Assert.NotNull(deserialized); + string expectedArtist = "Artist"; + string expectedCopyright = "Copyright"; long expectedExifOffset = 0; long expectedGpsInfo = 0; + string expectedImageDescription = "ImageDescription"; string expectedMake = "Make"; string expectedModel = "Model"; string expectedModifyDate = "ModifyDate"; long expectedOrientation = 0; long expectedResolutionUnit = 0; string expectedSoftware = "Software"; - long expectedXResolution = 0; + double expectedXResolution = 0; long expectedYCbCrPositioning = 0; - long expectedYResolution = 0; + double expectedYResolution = 0; + Assert.Equal(expectedArtist, deserialized.Artist); + Assert.Equal(expectedCopyright, deserialized.Copyright); Assert.Equal(expectedExifOffset, deserialized.ExifOffset); Assert.Equal(expectedGpsInfo, deserialized.GpsInfo); + Assert.Equal(expectedImageDescription, deserialized.ImageDescription); Assert.Equal(expectedMake, deserialized.Make); Assert.Equal(expectedModel, deserialized.Model); Assert.Equal(expectedModifyDate, deserialized.ModifyDate); @@ -2081,8 +2753,11 @@ public void Validation_Works() { var model = new Image { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -2102,10 +2777,16 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works() { var model = new Image { }; + Assert.Null(model.Artist); + Assert.False(model.RawData.ContainsKey("Artist")); + Assert.Null(model.Copyright); + Assert.False(model.RawData.ContainsKey("Copyright")); Assert.Null(model.ExifOffset); Assert.False(model.RawData.ContainsKey("ExifOffset")); Assert.Null(model.GpsInfo); Assert.False(model.RawData.ContainsKey("GPSInfo")); + Assert.Null(model.ImageDescription); + Assert.False(model.RawData.ContainsKey("ImageDescription")); Assert.Null(model.Make); Assert.False(model.RawData.ContainsKey("Make")); Assert.Null(model.Model); @@ -2140,8 +2821,11 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works() var model = new Image { // Null should be interpreted as omitted for these properties + Artist = null, + Copyright = null, ExifOffset = null, GpsInfo = null, + ImageDescription = null, Make = null, Model = null, ModifyDate = null, @@ -2153,10 +2837,16 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works() YResolution = null, }; + Assert.Null(model.Artist); + Assert.False(model.RawData.ContainsKey("Artist")); + Assert.Null(model.Copyright); + Assert.False(model.RawData.ContainsKey("Copyright")); Assert.Null(model.ExifOffset); Assert.False(model.RawData.ContainsKey("ExifOffset")); Assert.Null(model.GpsInfo); Assert.False(model.RawData.ContainsKey("GPSInfo")); + Assert.Null(model.ImageDescription); + Assert.False(model.RawData.ContainsKey("ImageDescription")); Assert.Null(model.Make); Assert.False(model.RawData.ContainsKey("Make")); Assert.Null(model.Model); @@ -2183,8 +2873,11 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works() var model = new Image { // Null should be interpreted as omitted for these properties + Artist = null, + Copyright = null, ExifOffset = null, GpsInfo = null, + ImageDescription = null, Make = null, Model = null, ModifyDate = null, @@ -2204,8 +2897,11 @@ public void CopyConstructor_Works() { var model = new Image { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -2376,8 +3072,8 @@ public void FieldRoundtrip_Works() long expectedResolutionUnit = 0; long expectedThumbnailLength = 0; long expectedThumbnailOffset = 0; - long expectedXResolution = 0; - long expectedYResolution = 0; + double expectedXResolution = 0; + double expectedYResolution = 0; Assert.Equal(expectedCompression, model.Compression); Assert.Equal(expectedResolutionUnit, model.ResolutionUnit); @@ -2433,8 +3129,8 @@ public void FieldRoundtripThroughSerialization_Works() long expectedResolutionUnit = 0; long expectedThumbnailLength = 0; long expectedThumbnailOffset = 0; - long expectedXResolution = 0; - long expectedYResolution = 0; + double expectedXResolution = 0; + double expectedYResolution = 0; Assert.Equal(expectedCompression, deserialized.Compression); Assert.Equal(expectedResolutionUnit, deserialized.ResolutionUnit); diff --git a/src/Imagekit.Tests/Models/Files/FileUploadResponseTest.cs b/src/Imagekit.Tests/Models/Files/FileUploadResponseTest.cs index a5109dd9..e4897ddc 100644 --- a/src/Imagekit.Tests/Models/Files/FileUploadResponseTest.cs +++ b/src/Imagekit.Tests/Models/Files/FileUploadResponseTest.cs @@ -63,6 +63,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -78,22 +79,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -215,6 +239,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -230,22 +255,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -431,6 +479,7 @@ public void SerializationRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -446,22 +495,45 @@ public void SerializationRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -599,6 +671,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -614,22 +687,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -758,6 +854,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -773,22 +870,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -974,6 +1094,7 @@ public void Validation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -989,22 +1110,45 @@ public void Validation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1344,6 +1488,7 @@ public void OptionalNullablePropertiesUnsetAreNotSet_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1359,22 +1504,45 @@ public void OptionalNullablePropertiesUnsetAreNotSet_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1500,6 +1668,7 @@ public void OptionalNullablePropertiesUnsetValidation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1515,22 +1684,45 @@ public void OptionalNullablePropertiesUnsetValidation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1651,6 +1843,7 @@ public void OptionalNullablePropertiesSetToNullAreSetToNull_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1666,22 +1859,45 @@ public void OptionalNullablePropertiesSetToNullAreSetToNull_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1811,6 +2027,7 @@ public void OptionalNullablePropertiesSetToNullValidation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1826,22 +2043,45 @@ public void OptionalNullablePropertiesSetToNullValidation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1976,6 +2216,7 @@ public void CopyConstructor_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1991,22 +2232,45 @@ public void CopyConstructor_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", diff --git a/src/Imagekit.Tests/Models/Webhooks/UnsafeUnwrapWebhookEventTest.cs b/src/Imagekit.Tests/Models/Webhooks/UnsafeUnwrapWebhookEventTest.cs index c97dff30..6e5abe11 100644 --- a/src/Imagekit.Tests/Models/Webhooks/UnsafeUnwrapWebhookEventTest.cs +++ b/src/Imagekit.Tests/Models/Webhooks/UnsafeUnwrapWebhookEventTest.cs @@ -199,6 +199,7 @@ public void UploadPreTransformSuccessValidationWorks() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -214,22 +215,45 @@ public void UploadPreTransformSuccessValidationWorks() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -867,6 +891,7 @@ public void UploadPreTransformSuccessSerializationRoundtripWorks() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -882,22 +907,45 @@ public void UploadPreTransformSuccessSerializationRoundtripWorks() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", diff --git a/src/Imagekit.Tests/Models/Webhooks/UnwrapWebhookEventTest.cs b/src/Imagekit.Tests/Models/Webhooks/UnwrapWebhookEventTest.cs index 50b6250f..7a057e5a 100644 --- a/src/Imagekit.Tests/Models/Webhooks/UnwrapWebhookEventTest.cs +++ b/src/Imagekit.Tests/Models/Webhooks/UnwrapWebhookEventTest.cs @@ -199,6 +199,7 @@ public void UploadPreTransformSuccessValidationWorks() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -214,22 +215,45 @@ public void UploadPreTransformSuccessValidationWorks() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -867,6 +891,7 @@ public void UploadPreTransformSuccessSerializationRoundtripWorks() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -882,22 +907,45 @@ public void UploadPreTransformSuccessSerializationRoundtripWorks() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", diff --git a/src/Imagekit.Tests/Models/Webhooks/UploadPreTransformSuccessEventTest.cs b/src/Imagekit.Tests/Models/Webhooks/UploadPreTransformSuccessEventTest.cs index aeea4c74..482c2876 100644 --- a/src/Imagekit.Tests/Models/Webhooks/UploadPreTransformSuccessEventTest.cs +++ b/src/Imagekit.Tests/Models/Webhooks/UploadPreTransformSuccessEventTest.cs @@ -68,6 +68,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -83,22 +84,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -227,6 +251,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -242,22 +267,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -401,6 +449,7 @@ public void SerializationRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -416,22 +465,45 @@ public void SerializationRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -574,6 +646,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -589,22 +662,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -740,6 +836,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -755,22 +852,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -914,6 +1034,7 @@ public void Validation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -929,22 +1050,45 @@ public void Validation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1081,6 +1225,7 @@ public void CopyConstructor_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1096,22 +1241,45 @@ public void CopyConstructor_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1251,6 +1419,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1266,22 +1435,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1408,6 +1600,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1423,22 +1616,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1582,6 +1798,7 @@ public void SerializationRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1597,22 +1814,45 @@ public void SerializationRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1754,6 +1994,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1769,22 +2010,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -1919,6 +2183,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -1934,22 +2199,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -2093,6 +2381,7 @@ public void Validation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -2108,22 +2397,45 @@ public void Validation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -2258,6 +2570,7 @@ public void CopyConstructor_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -2273,22 +2586,45 @@ public void CopyConstructor_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -2425,6 +2761,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -2440,22 +2777,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -2577,6 +2937,7 @@ public void FieldRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -2592,22 +2953,45 @@ public void FieldRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -2791,6 +3175,7 @@ public void SerializationRoundtrip_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -2806,22 +3191,45 @@ public void SerializationRoundtrip_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -2958,6 +3366,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -2973,22 +3382,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -3118,6 +3550,7 @@ public void FieldRoundtripThroughSerialization_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -3133,22 +3566,45 @@ public void FieldRoundtripThroughSerialization_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -3332,6 +3788,7 @@ public void Validation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -3347,22 +3804,45 @@ public void Validation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -3700,6 +4180,7 @@ public void OptionalNullablePropertiesUnsetAreNotSet_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -3715,22 +4196,45 @@ public void OptionalNullablePropertiesUnsetAreNotSet_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -3854,6 +4358,7 @@ public void OptionalNullablePropertiesUnsetValidation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -3869,22 +4374,45 @@ public void OptionalNullablePropertiesUnsetValidation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -4003,6 +4531,7 @@ public void OptionalNullablePropertiesSetToNullAreSetToNull_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -4018,22 +4547,45 @@ public void OptionalNullablePropertiesSetToNullAreSetToNull_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -4161,6 +4713,7 @@ public void OptionalNullablePropertiesSetToNullValidation_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -4176,22 +4729,45 @@ public void OptionalNullablePropertiesSetToNullValidation_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", @@ -4324,6 +4900,7 @@ public void CopyConstructor_Works() ExifValue = new() { ApertureValue = 0, + BrightnessValue = 0, ColorSpace = 0, CreateDate = "CreateDate", CustomRendered = 0, @@ -4339,22 +4916,45 @@ public void CopyConstructor_Works() FlashpixVersion = "FlashpixVersion", FNumber = 0, FocalLength = 0, + FocalLengthIn35mmFormat = 0, FocalPlaneResolutionUnit = 0, FocalPlaneXResolution = 0, FocalPlaneYResolution = 0, InteropOffset = 0, Iso = 0, + LensModel = "LensModel", + LightSource = 0, + MaxApertureValue = 0, MeteringMode = 0, SceneCaptureType = 0, + SceneType = "SceneType", + SensingMethod = 0, ShutterSpeedValue = 0, SubSecTime = "SubSecTime", + UserComment = "UserComment", WhiteBalance = 0, }, - Gps = new() { GpsVersionID = [0] }, + Gps = new() + { + GpsAltitude = 0, + GpsAltitudeRef = 0, + GpsDateStamp = "GPSDateStamp", + GpsImgDirection = 0, + GpsImgDirectionRef = "GPSImgDirectionRef", + GpsLatitude = [0], + GpsLatitudeRef = "GPSLatitudeRef", + GpsLongitude = [0], + GpsLongitudeRef = "GPSLongitudeRef", + GpsTimeStamp = [0], + GpsVersionID = [0], + }, Image = new() { + Artist = "Artist", + Copyright = "Copyright", ExifOffset = 0, GpsInfo = 0, + ImageDescription = "ImageDescription", Make = "Make", Model = "Model", ModifyDate = "ModifyDate", diff --git a/src/Imagekit/Imagekit.csproj b/src/Imagekit/Imagekit.csproj index d5d5a7c7..1c950f34 100644 --- a/src/Imagekit/Imagekit.csproj +++ b/src/Imagekit/Imagekit.csproj @@ -3,7 +3,7 @@ Image Kit C# Imagekit - 6.0.0 + 6.0.1 The official .NET library for the Image Kit API. Library README.md diff --git a/src/Imagekit/Models/Files/FileMetadata.cs b/src/Imagekit/Models/Files/FileMetadata.cs index 16367982..961f61b0 100644 --- a/src/Imagekit/Models/Files/FileMetadata.cs +++ b/src/Imagekit/Models/Files/FileMetadata.cs @@ -560,6 +560,24 @@ public double? ApertureValue } } + public double? BrightnessValue + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableStruct("BrightnessValue"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("BrightnessValue", value); + } + } + public long? ColorSpace { get @@ -812,12 +830,12 @@ public double? FNumber } } - public long? FocalLength + public double? FocalLength { get { this._rawData.Freeze(); - return this._rawData.GetNullableStruct("FocalLength"); + return this._rawData.GetNullableStruct("FocalLength"); } init { @@ -830,6 +848,24 @@ public long? FocalLength } } + public long? FocalLengthIn35mmFormat + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableStruct("FocalLengthIn35mmFormat"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("FocalLengthIn35mmFormat", value); + } + } + public long? FocalPlaneResolutionUnit { get @@ -920,6 +956,60 @@ public long? Iso } } + public string? LensModel + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableClass("LensModel"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("LensModel", value); + } + } + + public long? LightSource + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableStruct("LightSource"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("LightSource", value); + } + } + + public double? MaxApertureValue + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableStruct("MaxApertureValue"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("MaxApertureValue", value); + } + } + public long? MeteringMode { get @@ -956,6 +1046,42 @@ public long? SceneCaptureType } } + public string? SceneType + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableClass("SceneType"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("SceneType", value); + } + } + + public long? SensingMethod + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableStruct("SensingMethod"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("SensingMethod", value); + } + } + public double? ShutterSpeedValue { get @@ -992,6 +1118,24 @@ public string? SubSecTime } } + public string? UserComment + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableClass("UserComment"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("UserComment", value); + } + } + public long? WhiteBalance { get @@ -1014,6 +1158,7 @@ public long? WhiteBalance public override void Validate() { _ = this.ApertureValue; + _ = this.BrightnessValue; _ = this.ColorSpace; _ = this.CreateDate; _ = this.CustomRendered; @@ -1029,15 +1174,22 @@ public override void Validate() _ = this.FlashpixVersion; _ = this.FNumber; _ = this.FocalLength; + _ = this.FocalLengthIn35mmFormat; _ = this.FocalPlaneResolutionUnit; _ = this.FocalPlaneXResolution; _ = this.FocalPlaneYResolution; _ = this.InteropOffset; _ = this.Iso; + _ = this.LensModel; + _ = this.LightSource; + _ = this.MaxApertureValue; _ = this.MeteringMode; _ = this.SceneCaptureType; + _ = this.SceneType; + _ = this.SensingMethod; _ = this.ShutterSpeedValue; _ = this.SubSecTime; + _ = this.UserComment; _ = this.WhiteBalance; } @@ -1082,6 +1234,195 @@ public ExifExif FromRawUnchecked(IReadOnlyDictionary rawDat [JsonConverter(typeof(JsonModelConverter))] public sealed record class Gps : JsonModel { + public double? GpsAltitude + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableStruct("GPSAltitude"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("GPSAltitude", value); + } + } + + public long? GpsAltitudeRef + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableStruct("GPSAltitudeRef"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("GPSAltitudeRef", value); + } + } + + public string? GpsDateStamp + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableClass("GPSDateStamp"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("GPSDateStamp", value); + } + } + + public double? GpsImgDirection + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableStruct("GPSImgDirection"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("GPSImgDirection", value); + } + } + + public string? GpsImgDirectionRef + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableClass("GPSImgDirectionRef"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("GPSImgDirectionRef", value); + } + } + + public IReadOnlyList? GpsLatitude + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableStruct>("GPSLatitude"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set?>( + "GPSLatitude", + value == null ? null : ImmutableArray.ToImmutableArray(value) + ); + } + } + + public string? GpsLatitudeRef + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableClass("GPSLatitudeRef"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("GPSLatitudeRef", value); + } + } + + public IReadOnlyList? GpsLongitude + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableStruct>("GPSLongitude"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set?>( + "GPSLongitude", + value == null ? null : ImmutableArray.ToImmutableArray(value) + ); + } + } + + public string? GpsLongitudeRef + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableClass("GPSLongitudeRef"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("GPSLongitudeRef", value); + } + } + + public IReadOnlyList? GpsTimeStamp + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableStruct>("GPSTimeStamp"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set?>( + "GPSTimeStamp", + value == null ? null : ImmutableArray.ToImmutableArray(value) + ); + } + } + public IReadOnlyList? GpsVersionID { get @@ -1106,6 +1447,16 @@ public IReadOnlyList? GpsVersionID /// public override void Validate() { + _ = this.GpsAltitude; + _ = this.GpsAltitudeRef; + _ = this.GpsDateStamp; + _ = this.GpsImgDirection; + _ = this.GpsImgDirectionRef; + _ = this.GpsLatitude; + _ = this.GpsLatitudeRef; + _ = this.GpsLongitude; + _ = this.GpsLongitudeRef; + _ = this.GpsTimeStamp; _ = this.GpsVersionID; } @@ -1150,6 +1501,42 @@ public Gps FromRawUnchecked(IReadOnlyDictionary rawData) => [JsonConverter(typeof(JsonModelConverter))] public sealed record class Image : JsonModel { + public string? Artist + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableClass("Artist"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("Artist", value); + } + } + + public string? Copyright + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableClass("Copyright"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("Copyright", value); + } + } + public long? ExifOffset { get @@ -1186,6 +1573,24 @@ public long? GpsInfo } } + public string? ImageDescription + { + get + { + this._rawData.Freeze(); + return this._rawData.GetNullableClass("ImageDescription"); + } + init + { + if (value == null) + { + return; + } + + this._rawData.Set("ImageDescription", value); + } + } + public string? Make { get @@ -1294,12 +1699,12 @@ public string? Software } } - public long? XResolution + public double? XResolution { get { this._rawData.Freeze(); - return this._rawData.GetNullableStruct("XResolution"); + return this._rawData.GetNullableStruct("XResolution"); } init { @@ -1330,12 +1735,12 @@ public long? YCbCrPositioning } } - public long? YResolution + public double? YResolution { get { this._rawData.Freeze(); - return this._rawData.GetNullableStruct("YResolution"); + return this._rawData.GetNullableStruct("YResolution"); } init { @@ -1351,8 +1756,11 @@ public long? YResolution /// public override void Validate() { + _ = this.Artist; + _ = this.Copyright; _ = this.ExifOffset; _ = this.GpsInfo; + _ = this.ImageDescription; _ = this.Make; _ = this.Model; _ = this.ModifyDate; @@ -1563,12 +1971,12 @@ public long? ThumbnailOffset } } - public long? XResolution + public double? XResolution { get { this._rawData.Freeze(); - return this._rawData.GetNullableStruct("XResolution"); + return this._rawData.GetNullableStruct("XResolution"); } init { @@ -1581,12 +1989,12 @@ public long? XResolution } } - public long? YResolution + public double? YResolution { get { this._rawData.Freeze(); - return this._rawData.GetNullableStruct("YResolution"); + return this._rawData.GetNullableStruct("YResolution"); } init {