18779efd5Sopenharmony_ci/**
28779efd5Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd.
38779efd5Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
48779efd5Sopenharmony_ci * you may not use this file except in compliance with the License.
58779efd5Sopenharmony_ci * You may obtain a copy of the License at
68779efd5Sopenharmony_ci *
78779efd5Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
88779efd5Sopenharmony_ci *
98779efd5Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
108779efd5Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
118779efd5Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
128779efd5Sopenharmony_ci * See the License for the specific language governing permissions and
138779efd5Sopenharmony_ci * limitations under the License.
148779efd5Sopenharmony_ci */
158779efd5Sopenharmony_ci
168779efd5Sopenharmony_ci/**
178779efd5Sopenharmony_ci * Phone Data Type - Address
188779efd5Sopenharmony_ci */
198779efd5Sopenharmony_ciexport class House {
208779efd5Sopenharmony_ci  static readonly CONTENT_ITEM_TYPE: string = 'vnd.cursor.item/house_v2';
218779efd5Sopenharmony_ci  static readonly TYPE_DWELLING: number = 1;
228779efd5Sopenharmony_ci  static readonly TYPE_POSITION: number = 2;
238779efd5Sopenharmony_ci  static readonly TYPE_OTHER: number = 3;
248779efd5Sopenharmony_ci  static readonly TYPE_CUSTOM: number = 0;
258779efd5Sopenharmony_ci
268779efd5Sopenharmony_ci  static getTypeLabelResource(type: number) {
278779efd5Sopenharmony_ci    switch (type) {
288779efd5Sopenharmony_ci      case House.TYPE_DWELLING:
298779efd5Sopenharmony_ci        return $r('app.string.house_type_dwelling');
308779efd5Sopenharmony_ci      case House.TYPE_POSITION:
318779efd5Sopenharmony_ci        return $r('app.string.house_type_position');
328779efd5Sopenharmony_ci      case House.TYPE_OTHER:
338779efd5Sopenharmony_ci        return $r('app.string.house_type_other');
348779efd5Sopenharmony_ci      case House.TYPE_CUSTOM:
358779efd5Sopenharmony_ci        return $r('app.string.house_type_custom');
368779efd5Sopenharmony_ci      default:
378779efd5Sopenharmony_ci        return $r('app.string.house_type_custom');
388779efd5Sopenharmony_ci    }
398779efd5Sopenharmony_ci  }
408779efd5Sopenharmony_ci
418779efd5Sopenharmony_ci  constructor() {
428779efd5Sopenharmony_ci  }
438779efd5Sopenharmony_ci}