private IDictionary <string, IDictionary <string, object> > GetProperties() { Dictionary <string, IDictionary <string, object> > response = new Dictionary <string, IDictionary <string, object> >(); Dictionary <string, object> inner = new Dictionary <string, object>(); inner["Type"] = Type; if (ServiceUUIDs.Any()) { inner["ServiceUUIDs"] = ServiceUUIDs.ToArray(); } if (SolicitUUIDs.Any()) { inner["SolicitUUIDs"] = SolicitUUIDs.ToArray(); } if (ManufacturerData.Any()) { inner["ManufacturerData"] = ManufacturerData; } if (ServiceData.Any()) { inner["ServiceData"] = ServiceData; } inner["IncludeTxPower"] = IncludeTxPower; response[typeof(LEAdvertisement1).DBusInterfaceName()] = inner; return(response); }
protected void AddServiceUUID(string uuid) { ServiceUUIDs.Add(uuid); }