/** * @param source * @return */ @Override public IDeviceStreamData convert(DBObject source) { return MongoDeviceStreamData.fromDBObject(source, false); }
/** * Convert a DBObject into the SPI equivalent. * * @param source * @param isNested * @return */ public static DeviceStreamData fromDBObject(DBObject source, boolean isNested) { DeviceStreamData result = new DeviceStreamData(); MongoDeviceStreamData.fromDBObject(source, result, isNested); return result; }