private IGattAttribute Add(GattAttributeType type, Guid id, String name) { var item = new KnownAttribute(id, name, type); Add(item); return(item); }
/// <summary> /// Convert to tuple /// </summary> public static void Deconstruct(IGattAttribute att, out Guid id, out GattAttributeType type, out String description) { description = att.Description; id = att.Id; type = att.Type; }
private IGattAttribute Add(GattAttributeType type, UInt16 reservedKey, String name) { return(Add(type, reservedKey.CreateGuidFromAdoptedKey(), name)); }
private IGattAttribute Add(GattAttributeType type, String id, String name) { return(Add(type, Guid.Parse(id), name)); }
/// <summary> /// </summary> public KnownAttribute(Guid id, String description, GattAttributeType type) { Id = id; Description = description; Type = type; }
/// <summary> /// Add information for a known GATT attribute so it can be looked up later /// </summary> public IGattAttribute Add(GattAttributeType type, Guid id, String name) { return(Add(new GattAttribute(type, id, name))); }
/// <summary> /// </summary> public GattAttribute(GattAttributeType type, Guid id, String description) { Id = id; Description = description; Type = type; }