Dear Sir/Madam,
Following code in my application is used to retrieve the camera list from milestone corporate 2016 R3. But I found it cannot get the camera list belonging to federated site. Would you please give me some suggestion? Thank you.
Regards,
ZhangWei
public static List<Item> FindAllCameras(List<Item> top)
{
List<Item> allCameras = new List<Item>();
if (top != null)
foreach (Item item in top)
{
if (item.FQID.FolderType == [FolderType.No](https://FolderType.No) && item.FQID.Kind == Kind.Camera)
allCameras.Add(item);
if (item.FQID.FolderType != [FolderType.No](https://FolderType.No))
{
List<Item> check = FindAllCameras(item.GetChildren());
if (check != null && check.Count > 0)
allCameras.AddRange(check);
}
}
return allCameras;
}