001/*- 002 * #%L 003 * Smile CDR - CDR 004 * %% 005 * Copyright (C) 2016 - 2024 Smile CDR, Inc. 006 * %% 007 * All rights reserved. 008 * #L% 009 */ 010package ca.cdr.api.fhirgw.json; 011 012import ca.cdr.api.model.json.IModelJson; 013import com.fasterxml.jackson.annotation.JsonProperty; 014import io.swagger.v3.oas.annotations.media.Schema; 015 016import java.util.ArrayList; 017import java.util.Collection; 018 019@Schema(name = "AvailableRoutes", description = "Defines a list of all routes available to service a given request.") 020public class AvailableRoutesJson implements IModelJson { 021 @JsonProperty("availableRoutes") 022 @Schema(description = "This is a collection of routes that are available to potentially service a given request.") 023 private ArrayList<IBaseRouteJson> myRoutes = new ArrayList<>(); 024 025 public AvailableRoutesJson(Collection<? extends BaseRouteJson<?>> theRoutes) { 026 myRoutes.addAll(theRoutes); 027 } 028 029 public AvailableRoutesJson() {} 030 031 public ArrayList<IBaseRouteJson> getAvailableRoutes() { 032 return myRoutes; 033 } 034}