@@ -0,0 +1,2255 @@
+package gr.demokritos.iit.ydsapi.responses;%0A%0Aimport com.google.gson.*;%0Aimport gr.demokritos.iit.ydsapi.model.DashboardConfig;%0A%0Aimport java.lang.reflect.Type;%0Aimport java.util.List;%0A%0Apublic class DashboardConfigListLoadResponse extends BaseResponse implements IResponse %7B%0A    private final List%3CDashboardConfig%3E items;%0A%0A    public DashboardConfigListLoadResponse(Status status, String message, List%3CDashboardConfig%3E items) %7B%0A        super(status, message);%0A        this.items = items;%0A    %7D%0A%0A    public DashboardConfigListLoadResponse(List%3CDashboardConfig%3E items) %7B%0A        super();%0A%0A        if (items == null %7C%7C items.isEmpty()) %7B%0A            setStatus(Status.NOT_EXISTS);%0A            setMessage(%22no dashboard configuration items found%22);%0A        %7D else %7B%0A            setStatus(Status.OK);%0A        %7D%0A%0A        this.items = items;%0A    %7D%0A%0A    @Override%0A    public String toJSON() %7B%0A        GsonBuilder gsonBuilder = new GsonBuilder();%0A        gsonBuilder%0A                .registerTypeAdapter(DashboardConfigListLoadResponse.class, new DashboardConfigListLoadResponseSerializer())%0A                .disableHtmlEscaping()%0A                .setPrettyPrinting();%0A        Gson gson = gsonBuilder.create();%0A%0A        return gson.toJson(this);%0A    %7D%0A%0A    @Override%0A    public JsonElement toJSONElement() %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A    public class DashboardConfigListLoadResponseSerializer implements JsonSerializer%3CDashboardConfigListLoadResponse%3E %7B%0A        @Override%0A        public JsonElement serialize(DashboardConfigListLoadResponse r, Type type, JsonSerializationContext jsc) %7B%0A            final JsonObject jsonObject = new JsonObject();%0A            jsonObject.addProperty(%22status%22, r.getStatus().toString());%0A            jsonObject.addProperty(%22msg%22, r.getMessage());%0A            final JsonArray jsonItems = new JsonArray();%0A            if (r.items != null && !r.items.isEmpty()) %7B%0A                // Add items%0A                for (final DashboardConfig dc : r.items) %7B%0A                    final JsonElement jsonI = dc.toJSONElement();%0A                    jsonItems.add(jsonI);%0A                %7D%0A            %7D%0A            jsonObject.add(%22items%22, jsonItems);%0A%0A            return jsonObject;%0A        %7D%0A    %7D%0A%7D%0A

Add Dashboard Configurations list load response class