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 edu.wpi.first.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 game specific message. */
014  public String gameSpecificMessage = "";
015
016  /** Stores the match number. */
017  public int matchNumber;
018
019  /** Stores the replay number. */
020  public int replayNumber;
021
022  /** Stores the match type. */
023  public int matchType;
024
025  /**
026   * Called from JNI to set the structure data.
027   *
028   * @param eventName Event name.
029   * @param gameSpecificMessage Game-specific message.
030   * @param matchNumber Match number.
031   * @param replayNumber Replay number.
032   * @param matchType Match type.
033   */
034  public void setData(
035      String eventName,
036      String gameSpecificMessage,
037      int matchNumber,
038      int replayNumber,
039      int matchType) {
040    this.eventName = eventName;
041    this.gameSpecificMessage = gameSpecificMessage;
042    this.matchNumber = matchNumber;
043    this.replayNumber = replayNumber;
044    this.matchType = matchType;
045  }
046}