1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var forms_1 = require("@angular/forms");
|
4 | var EditProfile_ApiModel;
|
5 | (function (EditProfile_ApiModel) {
|
6 | var Request = (function () {
|
7 | function Request(initValue) {
|
8 | if (initValue === void 0) { initValue = {}; }
|
9 | var _this = this;
|
10 | Object.keys(initValue).forEach(function (key) { return _this[key] = initValue[key]; });
|
11 | }
|
12 | Request.prototype.getRequestBody = function () {
|
13 | return this;
|
14 | };
|
15 | Object.defineProperty(Request, "formGroup", {
|
16 | get: function () {
|
17 | return new forms_1.FormGroup({
|
18 | Email: new forms_1.FormControl(null, [forms_1.Validators.required]),
|
19 | Roles: new forms_1.FormControl(null, [forms_1.Validators.required]),
|
20 | Groups: new forms_1.FormControl(null, [forms_1.Validators.required]),
|
21 | });
|
22 | },
|
23 | enumerable: true,
|
24 | configurable: true
|
25 | });
|
26 | return Request;
|
27 | }());
|
28 | EditProfile_ApiModel.Request = Request;
|
29 | var Response = (function () {
|
30 | function Response(initValue) {
|
31 | if (initValue === void 0) { initValue = {}; }
|
32 | var _this = this;
|
33 | Object.keys(initValue).forEach(function (key) { return _this[key] = initValue[key]; });
|
34 | }
|
35 | Response.prototype.extractData = function () {
|
36 | return this.Result.User;
|
37 | };
|
38 | return Response;
|
39 | }());
|
40 | EditProfile_ApiModel.Response = Response;
|
41 | })(EditProfile_ApiModel = exports.EditProfile_ApiModel || (exports.EditProfile_ApiModel = {}));
|
42 |
|
\ | No newline at end of file |