package com.persagy.revit.models.entities

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


/**
 * 连接件对象
 *
 * @author jxing
 */
@Schema(description = "连接件对象")
@Table(name = "revit.join_object")
@JsonIgnoreProperties(ignoreUnknown = true)
class JoinObject : BaseComponent(){

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

    /** 连接的连接件id */
   @Schema(description = "连接的连接件id")
    @Column(name = "connected_ids")
    @JSONField(name = "ConnectedIds")
    @JsonProperty("ConnectedIds")
    var connectedIds: ArrayList<String>? = null

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

    /** 轮廓路径 */
   @Schema(description = "轮廓路径")
    @Column(name = "outline")
    @JSONField(name = "OutLine")
    @JsonProperty("OutLine")
    var outline: ArrayList<ArrayList<Point>>? = 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 = "rotation")
    @JsonProperty("Rotation")
    var rotation: Double? = null
}