pl.grzeslowski.jsupla.protocol.api.structs.SuplaTimeval Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protocol Show documentation
Show all versions of protocol Show documentation
Uploads all artifacts belonging to configuration ':protocol:archives'
The newest version!
package pl.grzeslowski.jsupla.protocol.api.structs;
import pl.grzeslowski.jsupla.protocol.api.structs.*;
import pl.grzeslowski.jsupla.protocol.api.types.ProtoWithSize;
import static pl.grzeslowski.jsupla.protocol.api.JavaConsts.*;
import static pl.grzeslowski.jsupla.protocol.api.Preconditions.*;
import static pl.grzeslowski.jsupla.protocol.api.consts.ProtoConsts.*;
/**
* MANUALLY ADDED!
Original code:
struct _supla_timeval {
long tv_sec;
long tv_usec;
};
*/
@lombok.EqualsAndHashCode @lombok.ToString
@javax.annotation.Generated(value="Struct original name: _supla_timeval", date = "2024-09-06T08:44:38.134Z[Etc/UTC]")
public class SuplaTimeval implements pl.grzeslowski.jsupla.protocol.api.types.ProtoWithSize {
public final int tvSec;
public final int tvUsec;
public SuplaTimeval(int tvSec,
int tvUsec) {
this.tvSec = tvSec;
this.tvUsec = tvUsec;
}
/* no call type */
@Override
public int size() {
return INT_SIZE // tvSec
+ INT_SIZE // tvUsec
;
}
}