Commit 2c7efc7e authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

Se implementó el metodo para obtener los intereses del usuario en el datasource de desarrollo

parent 458f4e46
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
import { IOption } from '../../../../common/domain/entities/option';
import { ProfileDataSource } from '../../../domain/datasources/profile_datasource';
export class ProfileDataSourceDev implements ProfileDataSource {
    async getUserInterests(): Promise<IOption[]> {
        const interests =  await this.getInterests();
        interests[0].isSelected = true;
        interests[1].isSelected = true;
        interests[2].isSelected = true;
        return interests;
    }
    async getInterests(): Promise<IOption[]> {
        return [
            { id: 1, name: 'Tecnología', isSelected: false },