package com.alttd.altitudeweb.mappers;

import com.alttd.altitudeweb.model.BannedUserDto;
import com.alttd.webinterface.appeals.BannedUser;
import org.springframework.stereotype.Service;

@Service
public class BannedUserToBannedUserDtoMapper {

    public BannedUserDto map(BannedUser bannedUser) {
        return new BannedUserDto(String.valueOf(bannedUser.userId()), bannedUser.reason(), bannedUser.name(), bannedUser.avatarUrl());
    }

}
