示例#1
0
        public static bool operator !=(Device a, Device b)
        {
            Liscence aL = a.Liscence;
            Liscence bL = b.Liscence;

            return(aL.Key != bL.Key);
        }
示例#2
0
        private async Task <List <Device> > FindDevices()
        {
            List <Device> output = new List <Device>();
            // Production, this would find the device
            await Task.Delay(1000);

            // TODO: Remove this in production
            Liscence individual = new Liscence()
            {
                Key  = "abcd1234",
                Name = "Theodore Kim",
                Type = Liscence.LiscenceType.Individual
            };
            Device d = new Device("Theo's Multicorder")
            {
                Sensors  = getDeviceSensor(),
                Liscence = individual,
                Version  = "Multicorder v0.1"
            };

            output.Add(d);
            // Remove this from production

            return(output);
        }