Loading mobile/src/profile/infrastructure/datasources/dev/profile_datasource.ts +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 }, Loading Loading
mobile/src/profile/infrastructure/datasources/dev/profile_datasource.ts +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 }, Loading