001/*----------------------------------------------------------------------------*/ 002/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */ 003/* Open Source Software - may be modified and shared by FRC teams. The code */ 004/* must be accompanied by the FIRST BSD license file in the root directory of */ 005/* the project. */ 006/*----------------------------------------------------------------------------*/ 007 008package edu.wpi.first.wpilibj.hal; 009 010/** 011 * Structure for holding the match info data request. 012 */ 013public class MatchInfoData { 014 /** 015 * Stores the event name. 016 */ 017 @SuppressWarnings("MemberName") 018 public String eventName = ""; 019 020 /** 021 * Stores the game specific message. 022 */ 023 @SuppressWarnings("MemberName") 024 public String gameSpecificMessage = ""; 025 026 /** 027 * Stores the match number. 028 */ 029 @SuppressWarnings("MemberName") 030 public int matchNumber; 031 032 /** 033 * Stores the replay number. 034 */ 035 @SuppressWarnings("MemberName") 036 public int replayNumber; 037 038 /** 039 * Stores the match type. 040 */ 041 @SuppressWarnings("MemberName") 042 public int matchType; 043 044 /** 045 * Called from JNI to set the structure data. 046 */ 047 @SuppressWarnings("JavadocMethod") 048 public void setData(String eventName, String gameSpecificMessage, 049 int matchNumber, int replayNumber, int matchType) { 050 this.eventName = eventName; 051 this.gameSpecificMessage = gameSpecificMessage; 052 this.matchNumber = matchNumber; 053 this.replayNumber = replayNumber; 054 this.matchType = matchType; 055 } 056}