2023-08-26 22:11:08 +02:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.WindowsPhone.Imaging
|
|
|
|
|
{
|
|
|
|
|
public class FullFlashUpdateStoragePool
|
2023-08-27 20:48:25 +02:00
|
|
|
{
|
|
|
|
|
private FullFlashUpdateStoragePool()
|
|
|
|
|
{
|
|
|
|
|
_ffuStores = new List<FullFlashUpdateStore>();
|
|
|
|
|
}
|
2023-08-26 22:11:08 +02:00
|
|
|
|
2023-08-27 20:48:25 +02:00
|
|
|
public FullFlashUpdateStoragePool(FullFlashUpdateImage A_1, ManifestCategory A_2) : this()
|
|
|
|
|
{
|
|
|
|
|
Image = A_1;
|
|
|
|
|
Name = A_2.GetString("Name");
|
|
|
|
|
}
|
2023-08-26 22:11:08 +02:00
|
|
|
|
2023-08-27 20:48:25 +02:00
|
|
|
public FullFlashUpdateImage Image
|
|
|
|
|
{
|
|
|
|
|
get; private set;
|
|
|
|
|
}
|
2023-08-26 22:11:08 +02:00
|
|
|
|
2023-08-27 20:48:25 +02:00
|
|
|
private string Name
|
|
|
|
|
{
|
2023-08-26 22:11:08 +02:00
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-27 20:48:25 +02:00
|
|
|
public List<FullFlashUpdateStore> Stores => new(_ffuStores);
|
2023-08-26 22:11:08 +02:00
|
|
|
|
2023-08-27 20:48:25 +02:00
|
|
|
internal void AddStore(ManifestCategory A_1)
|
|
|
|
|
{
|
|
|
|
|
if (A_1 == null)
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentNullException("category");
|
|
|
|
|
}
|
|
|
|
|
_ffuStores.Add(new FullFlashUpdateStore(Image, this, A_1));
|
|
|
|
|
}
|
2023-08-26 22:11:08 +02:00
|
|
|
|
2023-08-27 20:48:25 +02:00
|
|
|
private readonly List<FullFlashUpdateStore> _ffuStores;
|
|
|
|
|
}
|
2023-08-26 22:11:08 +02:00
|
|
|
}
|