/*
 * ********************************************************************************************************************
 *
 *                      :*$@@%$*:                         ;:                ;;    ;;
 *                    :@@%!  :!@@%:                       %!             ;%%@@%$ =@@@@@@@%;     @%@@@%%%%@@@@@
 *                   :@%;       :$=                       %%$$$%$$         ;$$  ;$@=   !@$
 *                   =@!                                  %!              @ $=;%   !@@@%:      !$$$$$$$$$$$$$$=
 *                   =@*                                  %!              @ $= % %@=   =%@!      %=
 *              *$%%! @@=        ;=$%%%$*:                %!              @ $= % =%%%%%%@$      *%:         =%
 *            %@@!:    !@@@%=$@@@@%!  :*@@$:              %!              @ $= % $*     ;@      @*          :%*
 *          ;@@!          ;!!!;:         ;@%:      =======@%========*     @ $$ % $%*****$@     :@$=*********=@$
 *          $@*   ;@@@%=!:                *@*
 *          =@$    ;;;!=%@@@@=!           =@!
 *           %@$:      =@%: :*@@@*       %@=                    Copyright (c) 2016-2019.  北京上格云技术有限公司
 *            ;%@@$=$@@%*       *@@@$=%@@%;
 *               ::;::             ::;::                                              All rights reserved.
 *
 * ********************************************************************************************************************
 */

package com.persagy.revit.models.entities

import com.alibaba.fastjson.annotation.JSONField
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import com.persagy.revit.models.jsonAnalyzer.Location
import com.persagy.revit.models.jsonAnalyzer.Parameter
import com.persagy.revit.models.jsonAnalyzer.Point
import io.swagger.v3.oas.annotations.media.Schema
import javax.persistence.Column
import javax.persistence.Table


/**
 * 部件
 *
 * @author jxing
 */
@Schema(description = "部件")
@Table(name = "revit.component")
@JsonIgnoreProperties(ignoreUnknown = true)
class EquipPart  : BaseComponent(){

    /** 名称 */
   @Schema(description = "名称")
    @Column(name = "name")
    @JSONField(name = "Name")
    @JsonProperty("Name")
    var name: String? = null

    /** 补充信息 */
   @Schema(description = "补充信息")
    @Column(name = "tag")
    @JSONField(name = "Tag")
    @JsonProperty("Tag")
    var tag: String? = null

    /** 本地编码 */
   @Schema(description = "本地编码")
    @Column(name = "local_id")
    var localId: String? = null

    /** 本地名称 */
   @Schema(description = "本地名称")
    @Column(name = "local_name")
    var localName: String? = null

    /** 6位部件类型编码 */
   @Schema(description = "6位部件类型编码")
    @Column(name = "family")
    @JSONField(name = "Family")
    @JsonProperty("Family")
    var family: String? = null

    /** 类型中文名称 */
   @Schema(description = "类型中文名称")
    @Column(name = "family_name")
    @JSONField(name = "FamilyName")
    @JsonProperty("FamilyName")
    var familyName: String? = null

    /** 族符号 */
   @Schema(description = "族符号")
    @Column(name = "family_symbol")
    @JSONField(name = "FamilySymbol")
    @JsonProperty("FamilySymbol")
    var familySymbol: String? = null

    /** 定位点 */
   @Schema(description = "定位点")
    @Column(name = "location")
    @JsonProperty("Location")
    var location: Location? = null

    /** 设备轮廓 */
   @Schema(description = "设备轮廓")
    @Column(name = "outline")
    @JsonProperty("OutLine")
    var outline : ArrayList<ArrayList<Point>>? = null

    /** 参数列表 */
   @Schema(description = "参数列表")
    @Column(name = "parameters")
    @JSONField(name = "Parameters")
    @JsonProperty("Parameters")
    var parameters: ArrayList<Parameter>? = null

    /** 所属设备的revit_id */
   @Schema(description = "所属设备的revit_id")
    @Column(name = "owner")
    @JsonProperty("Owner")
    var owner: String? = null

    /** 所属设备的id */
   @Schema(description = "所属设备的id")
    @Column(name = "owner_id")
    var ownerId : String? = null

    /** 所属设备的sourceId */
   @Schema(description = "所属设备的sourceId")
    @Column(name = "owner_source_id")
    var ownerSourceId : String? = null

    /** 旋转角度 */
   @Schema(description = "旋转角度")
    @Column(name = "rotation")
    @JsonProperty("Rotation")
    var rotation: Double? = null

    /** 资产id */
   @Schema(description = "资产id")
    @Column(name = "property_id")
    @JsonProperty("PropertyId")
    @JSONField(name = "PropertyId")
    var propertyId: String? = null

    /** BIMID */
   @Schema(description = "BIMID")
    @Column(name = "bimid")
    @JSONField(name = "BimId")
    @JsonProperty("BimId")
    var bimId: String? = null

    /** 万达BIMTypeID */
   @Schema(description = "万达BIMTypeID")
    @Column(name = "bim_type_id")
    @JSONField(name = "BIMTypeID")
    @JsonProperty("BIMTypeID")
    var bimTypeID: String? = null
}