| 1 | /*++ |
| 2 | |
| 3 | Copyright (c) Microsoft. All rights reserved. |
| 4 | |
| 5 | Module Name: |
| 6 | |
| 7 | ImageInfo.h |
| 8 | |
| 9 | Abstract: |
| 10 | |
| 11 | This file contains the definition of the WinRT wrapper for the WSLC SDK ImageInfo class. |
| 12 | |
| 13 | --*/ |
| 14 | |
| 15 | #pragma once |
| 16 | #include "Microsoft.WSL.Containers.ImageInfo.g.h" |
| 17 | #include "Helpers.h" |
| 18 | |
| 19 | namespace winrt::Microsoft::WSL::Containers::implementation { |
| 20 | struct ImageInfo : ImageInfoT<ImageInfo> |
| 21 | { |
| 22 | ImageInfo() = default; |
| 23 | ImageInfo(WslcImageInfo const& info); |
| 24 | |
| 25 | hstring Name(); |
| 26 | winrt::Windows::Storage::Streams::IBuffer Sha256(); |
| 27 | uint64_t Size(); |
| 28 | winrt::Windows::Foundation::DateTime CreatedTimestamp(); |
| 29 | |
| 30 | private: |
| 31 | hstring m_name{}; |
| 32 | winrt::Windows::Storage::Streams::IBuffer m_sha256{}; |
| 33 | uint64_t m_size{}; |
| 34 | winrt::Windows::Foundation::DateTime m_createdTimestamp{}; |
| 35 | }; |
| 36 | } // namespace winrt::Microsoft::WSL::Containers::implementation |
| 37 | |
| 38 | DEFINE_TYPE_HELPERS(ImageInfo); |