import { BaseMessage } from "../BaseMessage"; import { EnumValue } from "../../enums/EnumValue"; import { ChannelConnectionSetting } from "./ChannelConnectionSetting"; import { DataLimitation } from "./DataLimitation"; import { DataAccess } from "./DataAccess"; /** * Represents information about user. */ export interface UserInfo extends BaseMessage { /** * Name of the user. * @type {string} */ UserName: string; /** * First name of the user. * @type {string} */ FirstName: string; /** * Last name of the user. * @type {string} */ LastName: string; /** * Client can connect using DeviceType.Desktop. * @type {boolean} */ DesktopAccessEnabled: boolean; /** * Client can connect using DeviceType.Web. * @type {boolean} */ WebAccessEnabled: boolean; /** * Client can connect using DeviceType.Mobile. * @type {boolean} */ MobileAccessEnabled: boolean; /** * Privileges of administrator. * @type {EnumValue} */ AdminType: EnumValue; /** * Privileges of manager. * @type {EnumValue} */ ManagerType: EnumValue; /** * Type of market from which user will receive market and historical data. * @type {EnumValue} */ ContractType: EnumValue; /** * Value indicating whether user is enabled. * @type {boolean} */ UserEnabled: boolean; /** * Deleted state means user is disable and not preloaded into the server. * @type {boolean} */ IsDeleted: boolean; /** * Connection settings for user. * @type {ChannelConnectionSetting[]} */ ConnectionSettings: ChannelConnectionSetting[]; /** * Count of symbols per user for specified type of market data. * @type {DataLimitation} */ DataLimitation: DataLimitation; /** * Accessibility to specified type of data. * @type {DataAccess} */ DataAccess: DataAccess; // TODO Need remove this in .NET API. If removing this property in JS, deserialization of MsgPack will be crashed. WindowAccess: null; /** * The clearing to which the user belongs. * @type {number} */ ClearingId: number; /** * The instance server to which the user belongs. * @type {number} */ InstanceId: number; }