1/* 2 * Copyright (c) 2023-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16export enum MediaTypeCode { 17 MEDIA_PLAIN, 18 MEDIA_SPECIAL, 19 MEDIA_PHOTO, 20 MEDIA_TRANSPARENCY, 21 MEDIA_IRON_ON, 22 MEDIA_IRON_ON_MIRROR, 23 MEDIA_ADVANCED_PHOTO, 24 MEDIA_FAST_TRANSPARENCY, 25 MEDIA_BROCHURE_GLOSSY, 26 MEDIA_BROCHURE_MATTE, 27 MEDIA_PHOTO_GLOSSY, 28 MEDIA_PHOTO_MATTE, 29 MEDIA_PREMIUM_PHOTO, 30 MEDIA_OTHER_PHOTO, 31 MEDIA_PRINTABLE_CD, 32 MEDIA_PREMIUM_PRESENTATION, 33 34 MEDIA_AUTO = 98, 35 MEDIA_UNKNOWN = 99 36} 37 38export class MediaTypes { 39 public static readonly sCodeToStringMap: Map<number, string> = new Map([ 40 [MediaTypeCode.MEDIA_PLAIN, 'stationery'], 41 [MediaTypeCode.MEDIA_PHOTO, 'photographic'], 42 [MediaTypeCode.MEDIA_TRANSPARENCY, 'transparency'], 43 [MediaTypeCode.MEDIA_PHOTO_GLOSSY, 'photographic-glossy'], 44 [MediaTypeCode.MEDIA_PHOTO_MATTE, 'photographic-matte'], 45 [MediaTypeCode.MEDIA_AUTO, 'auto'], 46 ]); 47}