app/dxa/dxa-entity/views/my-profile-views/my-profile.model.ts
Properties |
|
Public
constructor(country: string, email: string, password: string, preferred_username: string, city?: string, companyName?: string, consent_for_CAD_data_accepted?: boolean, consent_for_skf_events_trainings_email?: boolean, consent_for_skf_newsletter_email?: boolean, consent_for_skf_polls_surveys_email?: boolean, consent_for_skf_products_email?: boolean, consent_for_skf_solutions_offers_email?: boolean, email_verified?: boolean, family_name?: string, given_name?: string, industry?: string, phoneNumber?: string, postal_code?: string, preferred_language?: string, street?: string, pub_id?: string, user_type?: string, region?: string, state?: string)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameters :
|
Optional city |
Type : string
|
Optional companyName |
Type : string
|
Optional consent_for_CAD_data_accepted |
Type : boolean
|
Optional consent_for_skf_events_trainings_email |
Type : boolean
|
Optional consent_for_skf_newsletter_email |
Type : boolean
|
Optional consent_for_skf_polls_surveys_email |
Type : boolean
|
Optional consent_for_skf_products_email |
Type : boolean
|
Optional consent_for_skf_solutions_offers_email |
Type : boolean
|
country |
Type : string
|
Type : string
|
Optional email_verified |
Type : boolean
|
Optional family_name |
Type : string
|
Optional given_name |
Type : string
|
Optional industry |
Type : string
|
password |
Type : string
|
Optional phoneNumber |
Type : string
|
Optional postal_code |
Type : string
|
Optional preferred_language |
Type : string
|
preferred_username |
Type : string
|
Optional pub_id |
Type : string
|
Optional region |
Type : string
|
Optional state |
Type : string
|
Optional street |
Type : string
|
Optional user_type |
Type : string
|
export class User {
country: string;
email: string;
password: string;
preferred_username: string;
city?: string;
companyName?: string;
consent_for_CAD_data_accepted?: boolean;
consent_for_skf_events_trainings_email?: boolean;
consent_for_skf_newsletter_email?: boolean;
consent_for_skf_polls_surveys_email?: boolean;
consent_for_skf_products_email?: boolean;
consent_for_skf_solutions_offers_email?: boolean;
email_verified?: boolean;
family_name?: string;
given_name?: string;
industry?: string;
phoneNumber?: string;
postal_code?: string;
preferred_language?: string;
street?: string;
pub_id?: string;
user_type?: string;
region?:string;
state?: string;
public constructor(
country: string,
email: string,
password: string,
preferred_username: string,
city?: string,
companyName?: string,
consent_for_CAD_data_accepted?: boolean,
consent_for_skf_events_trainings_email?: boolean,
consent_for_skf_newsletter_email?: boolean,
consent_for_skf_polls_surveys_email?: boolean,
consent_for_skf_products_email?: boolean,
consent_for_skf_solutions_offers_email?: boolean,
email_verified?: boolean,
family_name?: string,
given_name?: string,
industry?: string,
phoneNumber?: string,
postal_code?: string,
preferred_language?: string,
street?: string,
pub_id?: string,
user_type?: string,
region?: string,
state?: string
) {
this.country = country || '';
this.email = email || '';
this.password = password || '';
this.preferred_username = preferred_username || '';
this.city = city || '';
this.companyName = companyName || '';
this.consent_for_CAD_data_accepted = consent_for_CAD_data_accepted || false;
this.consent_for_skf_events_trainings_email = consent_for_skf_events_trainings_email || false;
this.consent_for_skf_newsletter_email = consent_for_skf_newsletter_email || false;
this.consent_for_skf_polls_surveys_email = consent_for_skf_polls_surveys_email || false;
this.consent_for_skf_products_email = consent_for_skf_products_email || false;
this.consent_for_skf_solutions_offers_email = consent_for_skf_solutions_offers_email || false;
this.email_verified = email_verified || false;
this.family_name = family_name || '';
this.given_name = given_name || '';
this.industry = industry || '';
this.phoneNumber = phoneNumber || '';
this.postal_code = postal_code || '';
this.preferred_language = preferred_language || '';
this.street = street || '';
this.pub_id = pub_id || '';
this.user_type = user_type || '';
this.region = region || '';
this.state = state || '';
}
}