// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.

package org.wpilib.hardware.hal;

/** Structure for holding the match info data request. */
public class MatchInfoData {
  /** Stores the event name. */
  public String eventName = "";

  /** Stores the match number. */
  public int matchNumber;

  /** Stores the replay number. */
  public int replayNumber;

  /** Stores the match type. */
  public int matchType;

  /** Default constructor. */
  public MatchInfoData() {}

  /**
   * Called from JNI to set the structure data.
   *
   * @param eventName Event name.
   * @param matchNumber Match number.
   * @param replayNumber Replay number.
   * @param matchType Match type.
   */
  public void setData(String eventName, int matchNumber, int replayNumber, int matchType) {
    this.eventName = eventName;
    this.matchNumber = matchNumber;
    this.replayNumber = replayNumber;
    this.matchType = matchType;
  }
}
