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.networktables; 006 007/** NetworkTables timestamped Raw. */ 008@SuppressWarnings("PMD.ArrayIsStoredDirectly") 009public final class TimestampedRaw { 010 /** 011 * Create a timestamped value. 012 * 013 * @param timestamp timestamp in local time base 014 * @param serverTime timestamp in server time base 015 * @param value value 016 */ 017 public TimestampedRaw(long timestamp, long serverTime, byte[] value) { 018 this.timestamp = timestamp; 019 this.serverTime = serverTime; 020 this.value = value; 021 } 022 023 /** 024 * Timestamp in local time base. 025 */ 026 @SuppressWarnings("MemberName") 027 public final long timestamp; 028 029 /** 030 * Timestamp in server time base. May be 0 or 1 for locally set values. 031 */ 032 @SuppressWarnings("MemberName") 033 public final long serverTime; 034 035 /** 036 * Value. 037 */ 038 @SuppressWarnings("MemberName") 039 public final byte[] value; 040}