package nomadgui.Telemetry;

import distinct.rpc.*;

/**
 * This class was automatically generated by Jrpcgen from the RPC/XDR file "telemetryMsgs.x".<br>
 * timeStamp: was struct
 */

public class timeStamp implements XDRType {
  public int msecs;
  public int week;

/**
 * Default constructor for objects of class timeStamp.
 */

public timeStamp()
{}

/**
 * Creates an object of class timeStamp.
 * @param     arg_msecs The value of the msecs component.
 * @param     arg_week The value of the week component.
 */

public timeStamp(int arg_msecs, int arg_week)
{
  msecs = arg_msecs;
  week = arg_week;
}

/**
 * Encodes an object of class timeStamp in compliance to RFC 1832 (XDR).
 * @param     xdrs The XDR output stream.
 */

public void xdr_encode(XDRStream xdrs)
{
  xdrs.xdr_encode_int(msecs);
  xdrs.xdr_encode_int(week);
}

/**
 * Decodes an object of class timeStamp in compliance to RFC 1832 (XDR).
 * @param     xdrs The XDR input stream.
 * @exception RPCError When the calls fails for any reason.
 */

public void xdr_decode(XDRStream xdrs) throws RPCError
{
  msecs = xdrs.xdr_decode_int();
  week = xdrs.xdr_decode_int();
}
}
