Record Class CaseResponse

java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.model.cases.CaseResponse

public record CaseResponse(List<LegalPerson> participants, Map<String,Attorney> attorneys, NameAndCode caseCategory, NameAndCode caseType, String caseTitle, LocalDateTime filedDate, String docketId, String trackingId, String courtCode, List<String> caseLineage, boolean hasUserFiledIntoCase) extends Record
All of the information Tyler sends about a particular case.
  • Constructor Details

    • CaseResponse

      public CaseResponse(List<LegalPerson> participants, Map<String,Attorney> attorneys, NameAndCode caseCategory, NameAndCode caseType, String caseTitle, LocalDateTime filedDate, String docketId, String trackingId, String courtCode, List<String> caseLineage, boolean hasUserFiledIntoCase)
      Creates an instance of a CaseResponse record class.
      Parameters:
      participants - the value for the participants record component
      attorneys - the value for the attorneys record component
      caseCategory - the value for the caseCategory record component
      caseType - the value for the caseType record component
      caseTitle - the value for the caseTitle record component
      filedDate - the value for the filedDate record component
      docketId - the value for the docketId record component
      trackingId - the value for the trackingId record component
      courtCode - the value for the courtCode record component
      caseLineage - the value for the caseLineage record component
      hasUserFiledIntoCase - the value for the hasUserFiledIntoCase record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • participants

      public List<LegalPerson> participants()
      Returns the value of the participants record component.
      Returns:
      the value of the participants record component
    • attorneys

      public Map<String,Attorney> attorneys()
      Returns the value of the attorneys record component.
      Returns:
      the value of the attorneys record component
    • caseCategory

      public NameAndCode caseCategory()
      Returns the value of the caseCategory record component.
      Returns:
      the value of the caseCategory record component
    • caseType

      public NameAndCode caseType()
      Returns the value of the caseType record component.
      Returns:
      the value of the caseType record component
    • caseTitle

      public String caseTitle()
      Returns the value of the caseTitle record component.
      Returns:
      the value of the caseTitle record component
    • filedDate

      public LocalDateTime filedDate()
      Returns the value of the filedDate record component.
      Returns:
      the value of the filedDate record component
    • docketId

      public String docketId()
      Returns the value of the docketId record component.
      Returns:
      the value of the docketId record component
    • trackingId

      public String trackingId()
      Returns the value of the trackingId record component.
      Returns:
      the value of the trackingId record component
    • courtCode

      public String courtCode()
      Returns the value of the courtCode record component.
      Returns:
      the value of the courtCode record component
    • caseLineage

      public List<String> caseLineage()
      Returns the value of the caseLineage record component.
      Returns:
      the value of the caseLineage record component
    • hasUserFiledIntoCase

      public boolean hasUserFiledIntoCase()
      Returns the value of the hasUserFiledIntoCase record component.
      Returns:
      the value of the hasUserFiledIntoCase record component