palm-sync
    Preparing search index...

    Class DlpReadSysInfoRespType

    DLP response for DlpReadSysInfoReqType.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    compVer: DlpVersionType = ...

    Highest DLP version this device is compatible with

    dlpVer: DlpVersionType = ...

    DLP protocol version on this device

    errorCode: DlpRespErrorCode = DlpRespErrorCode.NONE

    Error code.

    funcId: DlpFuncId = DlpFuncId.ReadSysInfo

    Expected DLP function ID.

    localizationId: number = 0

    Locale for this device. Not sure what the format is.

    maxRecSize: number = 0

    Maximum record size.

    Usually <=0xFFFF or ==0 for older devices (means records are limited to 64k), can be much larger for devices with DLP >= 1.4 (i.e. 0x00FFFFFE).

    prodId: Buffer<ArrayBuffer> = ...

    Product ID.

    romSWVersion: DlpRomVersion = ...

    Version of the device ROM.

    Format: 0xMMmfsbbb where MM=Major, m=minor, f=fix, s=stage, bbb=build. See: https://github.com/jichu4n/palm-os-sdk/blob/master/sdk-4/include/Core/System/SystemMgr.h#L749

    Accessors

    • get errorMessage(): string

      Human-readable error message corresponding to status.

      Returns string

    Methods

    • Assign properties to this object from a JSON object.

      Conceptually equivalent to Object.assign(), but recursively hydrates SObjects / SArrays / SerializableWrappers etc and invokes their assignJSON() to process JSON values. For example:

      class A extends SObject {
      @field(SUInt8) prop1: number;
      }
      class B extends SObject {
      @field() a = new A();
      }
      const b1 = new B();
      b1.assignJSON({a: {prop1: 300}});

      Parameters

      • jsonObject: { [key: string | symbol]: unknown }

      Returns void

    • Assign properties to this object from a map of Serializables.

      Conceptually equivalent to Object.assign(), but automatically unwraps wrapped properties. Fields defined with @field() are directly assigned, and fields defined with @field(wrapper) are assigned by unwrapping the corresponding SerializableWrapper. Unknown fields are considered an error.

      Parameters

      • serializableMap: { [propertyKey: string | symbol]: Serializable }

      Returns void

    • Map values of this object to Serializable.

      Fields defined with @field() are preserved as-is, and field defined with @field(wrapper) are wrapped in their respective wrapper types.

      Returns { [propertyKey: string]: Serializable }

    • Creates a new instance of this value by deserializing from a buffer.

      Type Parameters

      • T extends Serializable

      Parameters

      • this: new () => T
      • buffer: Buffer
      • Optionalopts: DeserializeOptions

      Returns T

    • Create a new instance with the provided initial properties.

      Type Parameters

      • T extends SObject

      Parameters

      • this: new () => T
      • Optionalprops: Partial<T>

      Returns T

    • Similar to with(), but uses assignJSON() instead of Object.assign().

      Type Parameters

      • T extends SObject

      Parameters

      • this: new () => T
      • json: { [key: string | symbol]: unknown }

      Returns T