Example #1
0
        internal static string AddDevice(ClientConnection connection, string imei, string secret)
        {
            var newDevice = new MobileDevice(imei, secret);
            var deviceId  = newDevice.DeviceInstance.DeviceId;

            connection.Bind(deviceId);
            BoundDevices.Add(newDevice);
            ConsoleHelper.PrintNewDeviceBound(newDevice.DeviceInstance.Imei, deviceId);
            return(deviceId);
        }