Search in sources :

Example 1 with ApiUsageStateId

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;
}
Also used : ApiUsageState(org.thingsboard.server.common.data.ApiUsageState) ApiUsageStateId(org.thingsboard.server.common.data.id.ApiUsageStateId)

Aggregations

ApiUsageState (org.thingsboard.server.common.data.ApiUsageState)1 ApiUsageStateId (org.thingsboard.server.common.data.id.ApiUsageStateId)1