#include "adapters/eft/common/EftMongoId.h"

#include "adapters/il2cpp/Il2CppString.h"

namespace ta::adapters::eft::common
{
    std::string mongo_id_string(const EftMongoId& id)
    {
        return id.string_id ? ta::adapters::il2cpp::conv_string(id.string_id) : std::string{};
    }

    bool same_mongo_id(const EftMongoId& left, const EftMongoId& right) noexcept
    {
        return left.timestamp == right.timestamp &&
            left.counter == right.counter &&
            left.string_id == right.string_id;
    }
}
