001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package org.wpilib.hardware.hal;
006
007/** Structure for holding the match info data request. */
008@SuppressWarnings("MemberName")
009public class MatchInfoData {
010  /** Stores the event name. */
011  public String eventName = "";
012
013  /** Stores the match number. */
014  public int matchNumber;
015
016  /** Stores the replay number. */
017  public int replayNumber;
018
019  /** Stores the match type. */
020  public int matchType;
021
022  /** Default constructor. */
023  public MatchInfoData() {}
024
025  /**
026   * Called from JNI to set the structure data.
027   *
028   * @param eventName Event name.
029   * @param matchNumber Match number.
030   * @param replayNumber Replay number.
031   * @param matchType Match type.
032   */
033  public void setData(String eventName, int matchNumber, int replayNumber, int matchType) {
034    this.eventName = eventName;
035    this.matchNumber = matchNumber;
036    this.replayNumber = replayNumber;
037    this.matchType = matchType;
038  }
039}