Class DataConvert

Index

Methods

Methods

public static createLocalDateTime(milliseconds: number): Date

Parameters

  • milliseconds: number

Returns

Date

public static createUnspecifiedDateTime(year: number, month: number, day: number, hour: number, minute: number, second: number, milliseconds: number): Date

Parameters

  • year: number
  • month: number
  • day: number
  • hour: number
  • minute: number
  • second: number
  • milliseconds: number

Returns

Date

public static createUtcDateTime(milliseconds: number): Date

Parameters

  • milliseconds: number

Returns

Date

public static fixupType(context: ClientRuntimeContext, obj: any): any

Parameters

Returns

any

public static fixupTypes(context: ClientRuntimeContext, dict: any)

Parameters

public static getDateTimeKind(datetime: Date): DateTimeKind

Parameters

  • datetime: Date

Returns

DateTimeKind

public static invokeGetProperty(obj: any, propName: string): any

Parameters

  • obj: any
  • propName: string

Returns

any

public static invokeSetProperty(obj: any, propName: string, propValue: any)

Parameters

  • obj: any
  • propName: string
  • propValue: any

public static populateArray(context: ClientRuntimeContext, dest: any, jsonArrayFromServer: any)

Parameters

public static populateDictionaryFromObject(dict: any, parentNode: any)

Parameters

  • dict: any
  • parentNode: any

public static specifyDateTimeKind(datetime: Date, kind: DateTimeKind)

Parameters

public static writeDictionaryToXml(writer: XmlWriter, dict: any, topLevelElementTagName: string, keys: any, serializationContext: SerializationContext)

Parameters

public static writePropertiesToXml(writer: XmlWriter, obj: any, propNames: Array<string>, serializationContext: SerializationContext)

Parameters

public static writeValueToXmlElement(writer: XmlWriter, objValue: any, serializationContext: SerializationContext)

Parameters