File

src/app/services/mock-data/mock-data.service.ts

Description

Mock data connection service. ~extends DataService

Supplies test data.

Extends

DataService

Index

Properties
Methods

Constructor

constructor(imageDataService: ImageDataService, httpClient: HttpClient)

Constructs the data service. ~constructor

Parameters :
Name Type Optional Description
imageDataService ImageDataService No

The data service injected dependency.

httpClient HttpClient No

The http client for requests to the server.

Methods

Public getAmendedAccomplishments
getAmendedAccomplishments(cv: ICv)

Amends accomplishments for testing.

Parameters :
Name Type Optional
cv ICv No
Returns : Course[]

The amended accomplishments.

Public getCv
getCv()

Retrieves a CV.

The CV.

Public getEntities
getEntities()

Retrieves an entities array.

The entities array.

Public getGanttChart
getGanttChart()

Retrieves a gantt chart.

The gantt chart.

Public getGeneralTimeline
getGeneralTimeline()

Retrieves a general timeline.

The general timeline.

Public getOntology
getOntology()

Retrieves an entities array.

Returns : Observable<any>

The entities array.

Public getProjects
getProjects()

Retrieves a projects array.

The projects array.

Public getUi
getUi()

Retrieves a UI.

Returns : Observable<Indexable<UiEntry>>

The UI.

Public getVersion
getVersion()

Retrieves a Version.

Returns : Observable<literal type>

The Version.

Public getAccomplishments
getAccomplishments()

Retrieves accomplishments.

Returns : Observable<any>

The accomplishments.

Public getEducation
getEducation()

Retrieves education.

Returns : Observable<any>

The education.

Public getProfessionalExperience
getProfessionalExperience()

Retrieves professional experience.

Returns : Observable<any>

The professional experience.

Public getPublications
getPublications()

Retrieves publications.

Returns : Observable<any>

The publications.

Public getResourceUri
getResourceUri(resourceName: string, themeName: string)

Retrieves a theme-dependent resource URI.

Parameters :
Name Type Optional Description
resourceName string No

The resource name.

themeName string No

The theme name.

Returns : string

The theme-dependent resource URI.

Public urlResolve
urlResolve(base: string, url: string)

Resolves an url to a base.

Parameters :
Name Type Optional Description
base string No

The base.

url string No

The url to process.

Returns : string

The resolved url.

Properties

Public imageDataService
Type : ImageDataService
The data service injected dependency.
Public Readonly mockData
Type : object
Default value : { // tslint:disable-next-line: max-line-length frequencies: [['Developer', { Count: 16, Percentage: 48, Lightness: 0, Label: 'Developer' }], ['Programmer', { Count: 5, Percentage: 15, Lightness: 37, Label: 'Programmer' }]], languages: [{ Language: 'English', Level: 'Full professional proficiency', Score: 4, Share: 30, Label: 'English' }], projects: [{ Id: 1, From: 43243, To: 61543, 'From Year': 2018, 'From Month': 5, 'Imported Name': 'Pluralsight Skill IQ in partnership with Stack Overflow', 'Months total': 601, 'Duration total': '601', Name: 'Pluralsight Skill IQ in partnership with Stack Overflow', Start: 2018.4166666666667, 'Years total': 50.083333333333336, Type: 'Certification', Color: '#7F00FFC0' }, { Id: 1, From: 43221, To: 43252, 'From Year': 2018, 'From Month': 5, 'Imported Name': 'Life Store (freelance)', 'Months total': 1, 'Duration total': '1 month', Name: 'Life Store (freelance)', Start: 2018.4166666666667, 'Years total': 0.08333333333333333, Type: 'Project', Color: '#004000C0' }], filteredProjects: [{ Id: 1, From: 43221, To: 43252, 'From Year': 2018, 'From Month': 5, 'Imported Name': 'Life Store (freelance)', 'Months total': 1, 'Duration total': '1 month', Name: 'Life Store (freelance)', Start: 2018.4166666666667, 'Years total': 0.08333333333333333, Type: 'Project', Color: '#004000C0' }] }

Mock data.

results matching ""

    No results matching ""