// /blink1/id -- Display blink1_id and blink1 serial numbers (if any) static string blink1Id(HttpRequest request, blinkServer bs)//example { string serial = bs.getId(); return @"{ ""blink1_id"": ""44288083" + serial + @""", ""blink1_serialnums"": [ """ + serial + @""" ], ""status"": ""blink1 id"" }"; }
public Blink1JSONFile(string name, IDirectory parent, blinkServer bsp) { this.name = name; this.parent = parent; this.bs = bsp; GetStringResponse = delegate(HttpRequest input, blinkServer bsa) { return input.ToString(); }; }