Initial project commit

This commit is contained in:
2020-07-18 21:44:27 -04:00
parent 8a1141b373
commit fea891a268
127 changed files with 20838 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
package com.eveningoutpost.dexdrip.G5Model;
import com.eveningoutpost.dexdrip.Models.JoH;
import com.google.common.collect.ImmutableSet;
import com.google.gson.annotations.Expose;
/**
* Created by jamorham on 12/10/2017.
*/
public class Ob1Work {
private static final ImmutableSet<Class> streamClasses = ImmutableSet.of(SessionStartTxMessage.class, SessionStopTxMessage.class, CalibrateTxMessage.class);
@Expose
public final BaseMessage msg;
@Expose
public final String text;
@Expose
public final long timestamp;
public volatile int retry = 0;
Ob1Work(BaseMessage msg, String text) {
this.msg = msg;
this.text = text;
this.timestamp = JoH.tsl();
}
public boolean streamable() {
return streamClasses.contains(msg.getClass());
}
}