package no.stelar7.api.r4j.pojo.val.matchlist;

import java.io.Serializable;
import java.util.Objects;

public class MatchReference implements Serializable
{
    private static final long serialVersionUID = -5301457261872587385L;
    
    private String matchId;
    private Long   gameStartTime;
    private String teamId;
    
    public String getMatchId()
    {
        return matchId;
    }
    
    public Long getGameStartTime()
    {
        return gameStartTime;
    }
    
    public String getTeamId()
    {
        return teamId;
    }
    
    @Override
    public boolean equals(Object o)
    {
        if (this == o)
        {
            return true;
        }
        if (o == null || getClass() != o.getClass())
        {
            return false;
        }
        MatchReference match = (MatchReference) o;
        return Objects.equals(matchId, match.matchId) &&
               Objects.equals(gameStartTime, match.gameStartTime) &&
               Objects.equals(teamId, match.teamId);
    }
    
    @Override
    public int hashCode()
    {
        return Objects.hash(matchId, gameStartTime, teamId);
    }
    
    @Override
    public String toString()
    {
        return "Match{" +
               "matchId='" + matchId + '\'' +
               ", gameStartTime=" + gameStartTime +
               ", teamId='" + teamId + '\'' +
               '}';
    }
}

@@ -223,20 +223,16 @@
 87385L;%0A
-    
 %0A    pri
@@ -280,24 +280,30 @@
 ameStartTime
+Millis
 ;%0A    privat
@@ -311,28 +311,25 @@
  String 
-teamId;%0A    
+queueId;%0A
 %0A    pub
@@ -380,36 +380,32 @@
  matchId;%0A    %7D%0A
-    
 %0A    public Long
@@ -421,16 +421,22 @@
 tartTime
+Millis
 ()%0A    %7B
@@ -464,24 +464,30 @@
 tartTime
+Millis
 ;%0A    %7D%0A
     %0A   
@@ -474,28 +474,24 @@
 llis;%0A    %7D%0A
-    
 %0A    public 
@@ -504,12 +504,13 @@
  get
-Team
+Queue
 Id()
@@ -531,20 +531,21 @@
  return 
-team
+queue
 Id;%0A    
@@ -538,36 +538,32 @@
  queueId;%0A    %7D%0A
-    
 %0A    @Override%0A 
@@ -921,16 +921,22 @@
 tartTime
+Millis
 , match.
@@ -948,16 +948,22 @@
 tartTime
+Millis
 ) &&%0A   
@@ -989,20 +989,21 @@
 .equals(
-team
+queue
 Id, matc
@@ -1004,20 +1004,21 @@
 , match.
-team
+queue
 Id);%0A   
@@ -1012,36 +1012,32 @@
 queueId);%0A    %7D%0A
-    
 %0A    @Override%0A 
@@ -1117,22 +1117,29 @@
 tartTime
-, team
+Millis, queue
 Id);%0A   
@@ -1141,20 +1141,16 @@
 ;%0A    %7D%0A
-    
 %0A    @Ov
@@ -1294,16 +1294,22 @@
 tartTime
+Millis
 =%22 + gam
@@ -1318,16 +1318,22 @@
 tartTime
+Millis
  +%0A     
@@ -1349,20 +1349,21 @@
  %22, 
-team
+queue
 Id='%22 + 
 team
@@ -1362,12 +1362,13 @@
 %22 + 
-team
+queue
 Id +

Fix property names to be related to response from riot valorant api