001package ca.cdr.api.model.json.CdaJson;
002
003/*
004 * #%L
005 * Smile CDR - CDR
006 * %%
007 * Copyright (C) 2016 - 2026 Smile CDR, Inc.
008 * %%
009 * All rights reserved.
010 * #L%
011 */
012
013import ca.cdr.api.model.json.IModelJson;
014import com.fasterxml.jackson.annotation.JsonProperty;
015
016public class CdaTemplateViewAllResponseJson implements IModelJson {
017
018        @JsonProperty("templates")
019        private CdaTemplateJson[] theTemplates;
020
021        @JsonProperty("error")
022        private String myError;
023
024        @JsonProperty("count")
025        private int theCount = 0;
026
027        public CdaTemplateJson[] getTheTemplates() {
028                if (theTemplates == null) {
029                        return new CdaTemplateJson[0];
030                }
031                return theTemplates;
032        }
033
034        public void setTheTemplates(CdaTemplateJson[] theTemplates) {
035                this.theTemplates = theTemplates;
036        }
037
038        public int getTheCount() {
039                return theCount;
040        }
041
042        public void setTheCount(int theCount) {
043                this.theCount = theCount;
044        }
045
046        public String getError() {
047                return myError;
048        }
049
050        public void setError(String myError) {
051                this.myError = myError;
052        }
053}