File

src/models/bulkio/precision-utc-time.ts

Description

Serializable REDHAWK BULKIO Precision UTC Time model

Implements

ISerializable

Index

Properties
Methods

Methods

deserialize
deserialize(input: any)

Deserializes a JSON object into this class

Parameters :
Name Type Optional Description
input any
Returns : this

Properties

tcmode
tcmode: number
Type : number

Time Code mode

tcstatus
tcstatus: number
Type : number

Time Code status

tfsec
tfsec: number
Type : number

Number of fractional seconds (0.0 to 1.0) to add to twsec

toff
toff: number
Type : number

Fractional sample offset

twsec
twsec: number
Type : number

Number of seconds since 12 AM 1 January 1970

import { ISerializable } from '../serialization/index';

/**
 * Serializable REDHAWK BULKIO Precision UTC Time model
 */
export class PrecisionUTCTime implements ISerializable<PrecisionUTCTime> {
    /** Time Code mode */
    tcmode: number;
    /** Time Code status */
    tcstatus: number;
    /** Fractional sample offset */
    toff: number;
    /** Number of seconds since 12 AM 1 January 1970 */
    twsec: number;
    /** Number of fractional seconds (0.0 to 1.0) to add to twsec */
    tfsec: number;

    /** Deserializes a JSON object into this class */
    deserialize(input: any) {
        this.tcmode = input.tcmode;
        this.tcstatus = input.tcstatus;
        this.toff = input.toff;
        this.twsec = input.twsec;
        this.tfsec = input.tfsec;
        return this;
    }
}

results matching ""

    No results matching ""