src/app/shared/model/app-version.ts
Represents an App Version
Properties |
|
Methods |
|
constructor(version?: string, uri?: string, defaultVersion?: boolean)
|
Defined in src/app/shared/model/app-version.ts:13
|
Public deserialize | ||||||||
deserialize(input: )
|
||||||||
Defined in src/app/shared/model/app-version.ts:31
|
||||||||
For a given JSON data object, this method will populate the corresponding AppRegistration object, with the provided properties.
Parameters :
Returns :
this
|
Public defaultVersion |
defaultVersion:
|
Type : boolean
|
Defined in src/app/shared/model/app-version.ts:13
|
Public uri |
uri:
|
Type : string
|
Defined in src/app/shared/model/app-version.ts:12
|
Public version |
version:
|
Type : string
|
Defined in src/app/shared/model/app-version.ts:11
|
import { Selectable } from '../../shared/model/selectable';
import { ApplicationType } from './application-type';
import { Serializable } from '../../shared/model';
/**
* Represents an App Version
*
* @author Damien Vitrac
*/
export class AppVersion implements Serializable<AppVersion> {
public version: string;
public uri: string;
public defaultVersion: boolean;
constructor(
version?: string,
uri?: string,
defaultVersion?: boolean ) {
this.version = version;
this.uri = uri;
this.defaultVersion = defaultVersion;
}
/**
* For a given JSON data object, this method
* will populate the corresponding AppRegistration object, with
* the provided properties.
*
* @param input JSON input data
*/
public deserialize(input) {
this.version = input.version;
this.uri = input.uri;
this.defaultVersion = input.defaultVersion as boolean;
return this;
}
}