-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a57d7eb
commit d4d1e19
Showing
4 changed files
with
50 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 10 additions & 13 deletions
23
src/app/virtualmachines/workshop/workshop-urlinfo.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,27 @@ | ||
// eslint-disable-next-line max-classes-per-file | ||
export class UrlData { | ||
user_email: string; | ||
user_name: string; | ||
resenv_url: string; | ||
user_email: string | ||
user_name: string | ||
resenv_url: string | ||
|
||
constructor(url_data?: Partial<UrlData>) { | ||
Object.assign(this, url_data); | ||
Object.assign(this, url_data) | ||
} | ||
} | ||
|
||
export class WorkshopUrlInfoModel { | ||
|
||
longname: string; | ||
shortname: string; | ||
url_data: UrlData[]; | ||
longname: string | ||
shortname: string | ||
url_data: UrlData[] | ||
|
||
constructor(workshop_info?: Partial<WorkshopUrlInfoModel>) { | ||
Object.assign(this, workshop_info); | ||
Object.assign(this, workshop_info) | ||
if (workshop_info) { | ||
if (workshop_info.url_data) { | ||
this.url_data = []; | ||
this.url_data = [] | ||
for (const url_data of workshop_info.url_data) { | ||
this.url_data.push(new UrlData(url_data)); | ||
this.url_data.push(new UrlData(url_data)) | ||
} | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters