@@ -69,7 +69,9 @@ public void CreateMaps(IMapperConstructor mapper)
6969 IppVersionsSupported =
7070 map . MapFromDicSetNull < IppVersion [ ] ? > ( src , PrinterAttribute . IppVersionsSupported ) ,
7171 JobImpressionsSupported = map . MapFromDic < Range ? > ( src , PrinterAttribute . JobImpressionsSupported ) ,
72- JobKOctetsSupported = map . MapFromDic < Range ? > ( src , PrinterAttribute . JobKOctetsSupported ) ,
72+ JobKOctetsSupported = map . MapFromDic < Range ? > ( src , PrinterAttribute . JobKOctetsSupported ) ,
73+ JpegKOctetsSupported = map . MapFromDic < Range ? > ( src , PrinterAttribute . JpegKOctetsSupported ) ,
74+ PdfKOctetsSupported = map . MapFromDic < Range ? > ( src , PrinterAttribute . PdfKOctetsSupported ) ,
7375 JobMediaSheetsSupported = map . MapFromDic < Range ? > ( src , PrinterAttribute . JobMediaSheetsSupported ) ,
7476 MultipleDocumentJobsSupported =
7577 map . MapFromDic < bool ? > ( src , PrinterAttribute . MultipleDocumentJobsSupported ) ,
@@ -133,7 +135,8 @@ public void CreateMaps(IMapperConstructor mapper)
133135 OutputBinSupported = map . MapFromDicSetNull < string [ ] ? > ( src , PrinterAttribute . OutputBinSupported ) ,
134136 MediaColDefault = src . ContainsKey ( PrinterAttribute . MediaColDefault ) ? MediaCol . Create ( src [ PrinterAttribute . MediaColDefault ] . FromBegCollection ( ) . ToIppDictionary ( ) , map ) : null ,
135137 PrintColorModeDefault = map . MapFromDic < PrintColorMode ? > ( src , PrinterAttribute . PrintColorModeDefault ) ,
136- PrintColorModeSupported = map . MapFromDicSetNull < PrintColorMode [ ] ? > ( src , PrinterAttribute . PrintColorModeSupported ) ,
138+ PrintColorModeSupported = map . MapFromDicSetNull < PrintColorMode [ ] ? > ( src , PrinterAttribute . PrintColorModeSupported ) ,
139+ WhichJobsSupported = map . MapFromDicSetNull < WhichJobs [ ] ? > ( src , PrinterAttribute . WhichJobsSupported ) ,
137140 } ) ;
138141
139142 mapper . CreateMap < GetPrinterAttributesResponse , IDictionary < string , IppAttribute [ ] > > ( ( src , map ) =>
@@ -159,6 +162,10 @@ public void CreateMaps(IMapperConstructor mapper)
159162 dic . Add ( PrinterAttribute . JobImpressionsSupported , new IppAttribute [ ] { new IppAttribute ( Tag . RangeOfInteger , PrinterAttribute . JobImpressionsSupported , src . JobImpressionsSupported . Value ) } ) ;
160163 if ( src . JobKOctetsSupported != null )
161164 dic . Add ( PrinterAttribute . JobKOctetsSupported , new IppAttribute [ ] { new IppAttribute ( Tag . RangeOfInteger , PrinterAttribute . JobKOctetsSupported , src . JobKOctetsSupported . Value ) } ) ;
165+ if ( src . JpegKOctetsSupported != null )
166+ dic . Add ( PrinterAttribute . JpegKOctetsSupported , new IppAttribute [ ] { new IppAttribute ( Tag . RangeOfInteger , PrinterAttribute . JpegKOctetsSupported , src . JpegKOctetsSupported . Value ) } ) ;
167+ if ( src . PdfKOctetsSupported != null )
168+ dic . Add ( PrinterAttribute . PdfKOctetsSupported , new IppAttribute [ ] { new IppAttribute ( Tag . RangeOfInteger , PrinterAttribute . PdfKOctetsSupported , src . PdfKOctetsSupported . Value ) } ) ;
162169 if ( src . JobMediaSheetsSupported != null )
163170 dic . Add ( PrinterAttribute . JobMediaSheetsSupported , new IppAttribute [ ] { new IppAttribute ( Tag . RangeOfInteger , PrinterAttribute . JobMediaSheetsSupported , src . JobMediaSheetsSupported . Value ) } ) ;
164171 if ( src . MultipleDocumentJobsSupported != null )
@@ -265,6 +272,8 @@ public void CreateMaps(IMapperConstructor mapper)
265272 dic . Add ( PrinterAttribute . PrintColorModeDefault , new IppAttribute [ ] { new IppAttribute ( Tag . Keyword , PrinterAttribute . PrintColorModeDefault , map . Map < string > ( src . PrintColorModeDefault . Value ) ) } ) ;
266273 if ( src . PrintColorModeSupported ? . Any ( ) ?? false )
267274 dic . Add ( PrinterAttribute . PrintColorModeSupported , src . PrintColorModeSupported . Select ( x => new IppAttribute ( Tag . Keyword , PrinterAttribute . PrintColorModeSupported , map . Map < string > ( x ) ) ) . ToArray ( ) ) ;
275+ if ( src . WhichJobsSupported ? . Any ( ) ?? false )
276+ dic . Add ( PrinterAttribute . WhichJobsSupported , src . WhichJobsSupported . Select ( x => new IppAttribute ( Tag . Keyword , PrinterAttribute . WhichJobsSupported , map . Map < string > ( x ) ) ) . ToArray ( ) ) ;
268277 return dic ;
269278 } ) ;
270279 }
0 commit comments