use of org.thingsboard.server.common.data.id.ApiUsageStateId in project thingsboard by thingsboard.
the class ApiUsageStateEntity method toData.
@Override
public ApiUsageState toData() {
ApiUsageState ur = new ApiUsageState(new ApiUsageStateId(this.getUuid()));
ur.setCreatedTime(createdTime);
if (tenantId != null) {
ur.setTenantId(TenantId.fromUUID(tenantId));
}
if (entityId != null) {
ur.setEntityId(EntityIdFactory.getByTypeAndUuid(entityType, entityId));
}
ur.setTransportState(transportState);
ur.setDbStorageState(dbStorageState);
ur.setReExecState(reExecState);
ur.setJsExecState(jsExecState);
ur.setEmailExecState(emailExecState);
ur.setSmsExecState(smsExecState);
ur.setAlarmExecState(alarmExecState);
return ur;
}
Aggregations