package com.its.safe.api.service;

import com.its.safe.api.dto.AgipObeLoc;
import com.its.safe.service.BisAgipService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@RequiredArgsConstructor
@Service
public class VmsSafeAdapterApiService {

    private final BisAgipService service;

    public void add(AgipObeLoc bisLoc) {
        bisLoc.setRcvNanoSeconds(System.nanoTime());
        this.service.add(bisLoc);
    }
}
