Skip to content

Commit

Permalink
Corrections and adding TeltonikaParameter to CustomValueTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
pankalog committed Dec 24, 2023
1 parent 2ba164c commit 9f8bd8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions model/src/main/java/org/openremote/model/custom/CarAsset.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ public class CarAsset extends Asset<CarAsset> {
public static final AttributeDescriptor<Date> LAST_CONTACT = new AttributeDescriptor<>("lastContact", ValueType.DATE_AND_TIME);
public static final AttributeDescriptor<String> MAKE_AND_MODEL = new AttributeDescriptor<>("makeAndModel", ValueType.TEXT).withOptional(true);
public static final AttributeDescriptor<Integer> MODEL_YEAR = new AttributeDescriptor<>("modelYear", ValueType.INTEGER).withOptional(true);
/**
* If Rich sees this, sorry for the American spelling!
*/
public static final AttributeDescriptor<ColourRGB> COLOR = new AttributeDescriptor<>("color", ValueType.COLOUR_RGB).withOptional(true);
public static final AttributeDescriptor<String> LICENSE_PLATE = new AttributeDescriptor<>("licensePlate", ValueType.TEXT).withOptional(true);

// Figure out a way to use the colour parameter for the color of the car on the map
public static final AssetDescriptor<CarAsset> DESCRIPTOR = new AssetDescriptor<>("car", null, CarAsset.class);


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package org.openremote.model.custom;

import org.openremote.model.teltonika.TeltonikaParameter;
import org.openremote.model.value.ValueDescriptor;

public class CustomValueTypes {
public static final ValueDescriptor<AssetStateDuration> ASSET_STATE_DURATION = new ValueDescriptor<>("AssetStateDuration", AssetStateDuration.class);
public static final ValueDescriptor<TeltonikaParameter> TELTONIKA_PARAMETER = new ValueDescriptor<>("TeltonikaParameter", TeltonikaParameter.class);
}

0 comments on commit 9f8bd8a

Please sign in to comment.