function parsePrivetDestination(destinationInfo) {
    const returnedPrinters = [];

    if (destinationInfo.hasLocalPrinting) {
      returnedPrinters.push(new print_preview.Destination(
          destinationInfo.serviceName, print_preview.DestinationType.LOCAL,
          print_preview.DestinationOrigin.PRIVET, destinationInfo.name,
          false /*isRecent*/, print_preview.DestinationConnectionStatus.ONLINE,
          {cloudID: destinationInfo.cloudID}));
    }

    if (destinationInfo.isUnregistered) {
      returnedPrinters.push(new print_preview.Destination(
          destinationInfo.serviceName, print_preview.DestinationType.GOOGLE,
          print_preview.DestinationOrigin.PRIVET, destinationInfo.name,
          false /*isRecent*/,
          print_preview.DestinationConnectionStatus.UNREGISTERED));
    }

    return returnedPrinters.length === 1 ? returnedPrinters[0] :
                                           returnedPrinters;
  }
/**
   * Parses a privet destination as one or more local printers.
   * @param {!print_preview.PrivetPrinterDescription} destinationInfo Object
   *     that describes a privet printer.
   * @return {!print_preview.Destination |
   *          !Array<!print_preview.Destination>} Parsed destination info.
   */
Parses a privet destination as one or more local printers.
@param {!print_preview.PrivetPrinterDescription} destinationInfo Object
that describes a privet printer.
@return {!print_preview.Destination |
!Array} Parsed destination info.
Parses a privet destination as one or more local printers . @param { !print_preview . PrivetPrinterDescription } destinationInfo Object that describes a privet printer . @return { !print_preview . Destination | !Array } Parsed destination info .
function parsePrivetDestination(destinationInfo) {
    const returnedPrinters = [];
    if (destinationInfo.hasLocalPrinting) {
      returnedPrinters.push(new print_preview.Destination(
          destinationInfo.serviceName, print_preview.DestinationType.LOCAL,
          print_preview.DestinationOrigin.PRIVET, destinationInfo.name,
          false , print_preview.DestinationConnectionStatus.ONLINE,
          {cloudID: destinationInfo.cloudID}));
    }
    if (destinationInfo.isUnregistered) {
      returnedPrinters.push(new print_preview.Destination(
          destinationInfo.serviceName, print_preview.DestinationType.GOOGLE,
          print_preview.DestinationOrigin.PRIVET, destinationInfo.name,
          false ,
          print_preview.DestinationConnectionStatus.UNREGISTERED));
    }
    return returnedPrinters.length === 1 ? returnedPrinters[0] :
                                           returnedPrinters;
  }
function parsePrivetDestination ( destinationInfo ) { const returnedPrinters = [ ] ; if ( destinationInfo . hasLocalPrinting ) { returnedPrinters . push ( new print_preview . Destination ( destinationInfo . serviceName , print_preview . DestinationType . LOCAL , print_preview . DestinationOrigin . PRIVET , destinationInfo . name , false , print_preview . DestinationConnectionStatus . ONLINE , { cloudID : destinationInfo . cloudID } ) ) ; } if ( destinationInfo . isUnregistered ) { returnedPrinters . push ( new print_preview . Destination ( destinationInfo . serviceName , print_preview . DestinationType . GOOGLE , print_preview . DestinationOrigin . PRIVET , destinationInfo . name , false , print_preview . DestinationConnectionStatus . UNREGISTERED ) ) ; } return returnedPrinters . length === 1 ? returnedPrinters [ 0 ] : returnedPrinters ; }
Parses a privet destination as one or more local printers.
Parses a privet destination as one or more local printers .
/*isRecent*/ /*isRecent*/