File

src/app/shared/model/app-version.ts

Description

Represents an App Version

Implements

Serializable

Example

Index

Properties
Methods

Constructor

constructor(version?: string, uri?: string, defaultVersion?: boolean)
Parameters :
Name Type Optional Description
version string true
uri string true
defaultVersion boolean true

Methods

Public deserialize
deserialize(input: )

For a given JSON data object, this method will populate the corresponding AppRegistration object, with the provided properties.

Parameters :
Name Type Optional Description
input

JSON input data

Returns : this

Properties

Public defaultVersion
defaultVersion: boolean
Type : boolean
Public uri
uri: string
Type : string
Public version
version: string
Type : string
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;
  }

}

results matching ""

    No results matching ""