|
| 1 | +package org.avni.server.domain.metabase; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 4 | + |
| 5 | +import java.util.Collections; |
| 6 | +import java.util.List; |
| 7 | + |
| 8 | +public class Dashcard { |
| 9 | + @JsonProperty("id") |
| 10 | + private int dashboardId; |
| 11 | + |
| 12 | + @JsonProperty("card_id") |
| 13 | + private int cardId; |
| 14 | + |
| 15 | + @JsonProperty("dashboard_tab_id") |
| 16 | + private Integer dashboardTabId; |
| 17 | + |
| 18 | + private int row; |
| 19 | + private int col; |
| 20 | + |
| 21 | + @JsonProperty("size_x") |
| 22 | + private int sizeX; |
| 23 | + |
| 24 | + @JsonProperty("size_y") |
| 25 | + private int sizeY; |
| 26 | + |
| 27 | + @JsonProperty("visualization_settings") |
| 28 | + private Object visualizationSettings; |
| 29 | + |
| 30 | + @JsonProperty("parameter_mappings") |
| 31 | + private List<Object> parameterMappings; |
| 32 | + |
| 33 | + public Dashcard(int dashboardId, int cardId, Integer dashboardTabId, int row, int col, int sizeX, int sizeY) { |
| 34 | + this.dashboardId = dashboardId; |
| 35 | + this.cardId = cardId; |
| 36 | + this.dashboardTabId = dashboardTabId; |
| 37 | + this.row = row; |
| 38 | + this.col = col; |
| 39 | + this.sizeX = sizeX; |
| 40 | + this.sizeY = sizeY; |
| 41 | + this.visualizationSettings = Collections.emptyMap(); |
| 42 | + this.parameterMappings = Collections.emptyList(); |
| 43 | + } |
| 44 | + |
| 45 | + public int getDashboardId() { |
| 46 | + return dashboardId; |
| 47 | + } |
| 48 | + |
| 49 | + public int getCardId() { |
| 50 | + return cardId; |
| 51 | + } |
| 52 | + |
| 53 | + public Integer getDashboardTabId() { |
| 54 | + return dashboardTabId; |
| 55 | + } |
| 56 | + |
| 57 | + public int getRow() { |
| 58 | + return row; |
| 59 | + } |
| 60 | + |
| 61 | + public int getCol() { |
| 62 | + return col; |
| 63 | + } |
| 64 | + |
| 65 | + public int getSizeX() { |
| 66 | + return sizeX; |
| 67 | + } |
| 68 | + |
| 69 | + public int getSizeY() { |
| 70 | + return sizeY; |
| 71 | + } |
| 72 | + |
| 73 | + @Override |
| 74 | + public String toString() { |
| 75 | + return "{" + |
| 76 | + "dashboardId=" + dashboardId + |
| 77 | + ", cardId=" + cardId + |
| 78 | + ", dashboardTabId=" + dashboardTabId + |
| 79 | + ", row=" + row + |
| 80 | + ", col=" + col + |
| 81 | + ", sizeX=" + sizeX + |
| 82 | + ", sizeY=" + sizeY + |
| 83 | + ", visualizationSettings=" + visualizationSettings + |
| 84 | + ", parameterMappings=" + parameterMappings + |
| 85 | + '}'; |
| 86 | + } |
| 87 | +} |
0 commit comments