public async Task <List <PnpDevice> > FindAllAsync(PnpObjectType type, IEnumerable <string> requestedProperties, string aqsFilter) { var pnpObjects = await PnpObject.FindAllAsync(type, requestedProperties, aqsFilter); var list = new List <PnpDevice>(); foreach (var pnpObject in pnpObjects) { list.Add ( new PnpDevice(pnpObject.Id, pnpObject.Properties, pnpObject.Type) ); } return(list); }
internal PnpDevice(string Id, IReadOnlyDictionary <string, object> Properties, PnpObjectType Type) { _id = Id; _properties = Properties; _type = Type; }