
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.sps.data;
import com.google.auto.value.AutoValue;

/**
 * Class representing user data specific to a competition
 */
@AutoValue
public abstract class CompetitorInfo {
  public static CompetitorInfo create(long id, String name, String email, long netWorth, long amountAvailable) {
    return new AutoValue_CompetitorInfo(id, name, email, netWorth, amountAvailable);
  }
  /** The id of the competitor */
  public abstract long id();
  /** The competitor's name */
  public abstract String name();
  /** The competitor's Google email */
  public abstract String email();
  /** The networth of the competitor */
  public abstract long netWorth();
  /** The amount the user has available for additional investments */
  public abstract long amountAvailable();
}
@@ -811,17 +811,8 @@
 ate(
-long id, 
 Stri
@@ -833,16 +833,45 @@
 g email,
+ int rank, int rankYesterday,
  long ne
@@ -878,16 +878,21 @@
 tWorth, 
+%0A    
 long amo
@@ -903,16 +903,36 @@
 vailable
+, int numInvestments
 ) %7B%0A    
@@ -971,12 +971,8 @@
 nfo(
-id, 
 name
@@ -979,16 +979,37 @@
 , email,
+ rank, rankYesterday,
  netWort
@@ -1030,77 +1030,30 @@
 able
-);%0A  %7D%0A  /** The id of the competitor */%0A  public abstract long id();
+, numInvestments);%0A  %7D
 %0A  /
@@ -1182,24 +1182,157 @@
 ng email();%0A
+  /** Competitor's rank */%0A  public abstract int rank();%0A  /** Competitor's rank yesterday */%0A  public abstract int rankYesterday();%0A
   /** The ne
@@ -1506,9 +1506,109 @@
 able();%0A
+  /** The number of investments owned by this competitor */%0A  public abstract int numInvestments();%0A
 %7D

Add class for competitor info