Coverage Report - org.codeforamerica.open311.facade.data.ServiceDefinition
 
Classes in this File Line Coverage Branch Coverage Complexity
ServiceDefinition
100%
6/6
N/A
1
 
 1  
 package org.codeforamerica.open311.facade.data;
 2  
 
 3  
 import java.io.Serializable;
 4  
 import java.util.List;
 5  
 
 6  
 /**
 7  
  * Represents a <a
 8  
  * href="http://wiki.open311.org/GeoReport_v2#GET_Service_Definition">service
 9  
  * definition</a>.
 10  
  * 
 11  
  * @author Santiago MunĂ­n <santimunin@gmail.com>
 12  
  * 
 13  
  */
 14  
 public class ServiceDefinition implements Serializable {
 15  
 
 16  
         private static final long serialVersionUID = -2002090161736619870L;
 17  
         private String serviceCode;
 18  
         private List<AttributeInfo> attributes;
 19  
 
 20  
         public ServiceDefinition(String serviceCode, List<AttributeInfo> attributes) {
 21  5
                 super();
 22  5
                 this.serviceCode = serviceCode;
 23  5
                 this.attributes = attributes;
 24  5
         }
 25  
 
 26  
         public String getServiceCode() {
 27  5
                 return serviceCode;
 28  
         }
 29  
 
 30  
         public List<AttributeInfo> getAttributes() {
 31  5
                 return attributes;
 32  
         }
 33  
 
 34  
 }