graphenej/src/main/java/de/bitsharesmunich/graphenej/BaseOperation.java

25 lines
585 B
Java
Raw Normal View History

2016-12-11 02:43:01 +00:00
package de.bitsharesmunich.graphenej;
2016-11-21 17:50:30 +00:00
2016-12-11 02:43:01 +00:00
import de.bitsharesmunich.graphenej.interfaces.ByteSerializable;
import de.bitsharesmunich.graphenej.interfaces.JsonSerializable;
2016-11-21 17:50:30 +00:00
/**
* Created by nelson on 11/5/16.
*/
2016-12-11 02:43:01 +00:00
public abstract class BaseOperation implements ByteSerializable, JsonSerializable {
2016-11-21 17:50:30 +00:00
protected OperationType type;
public BaseOperation(OperationType type){
this.type = type;
}
public byte getId() {
return (byte) this.type.ordinal();
}
2016-11-21 17:50:30 +00:00
public abstract void setFee(AssetAmount assetAmount);
2016-11-21 17:50:30 +00:00
public abstract byte[] toBytes();
}