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. */ 008public class MatchInfoData { 009 /** Stores the event name. */ 010 public String eventName = ""; 011 012 /** Stores the match number. */ 013 public int matchNumber; 014 015 /** Stores the replay number. */ 016 public int replayNumber; 017 018 /** Stores the match type. */ 019 public int matchType; 020 021 /** Default constructor. */ 022 public MatchInfoData() {} 023 024 /** 025 * Called from JNI to set the structure data. 026 * 027 * @param eventName Event name. 028 * @param matchNumber Match number. 029 * @param replayNumber Replay number. 030 * @param matchType Match type. 031 */ 032 public void setData(String eventName, int matchNumber, int replayNumber, int matchType) { 033 this.eventName = eventName; 034 this.matchNumber = matchNumber; 035 this.replayNumber = replayNumber; 036 this.matchType = matchType; 037 } 038}