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