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); }