import { BaseObject } from '../Basic/baseObject'; /** One successful login (dbo.UserLoginInfo), as returned by api/Authentication/getUserAuditTrail. */ export class UserLogInInfo extends BaseObject { userID: number; loginTime: Date; logoutTime?: Date; logoutType?: number; pcNumber: string; ipAddress: string; /** Mobile / tab device id; null for a browser login. */ deviceId: string; loginID: string; userName: string; constructor() { super(); this.userID = 0; this.loginTime = undefined; this.logoutTime = undefined; this.logoutType = undefined; this.pcNumber = ''; this.ipAddress = ''; this.deviceId = ''; this.loginID = ''; this.userName = ''; } } /** One failed login (dbo.BadLoginAttemptInfo), as returned by api/Authentication/getBadLoginAuditTrail. */ export class BadLoginAttemptInfo extends BaseObject { userID: number; attemptTime: Date; pcNumber: string; ipAddress: string; /** Mobile / tab device id; null for a browser login. */ deviceId: string; loginID: string; userName: string; constructor() { super(); this.userID = 0; this.attemptTime = undefined; this.pcNumber = ''; this.ipAddress = ''; this.deviceId = ''; this.loginID = ''; this.userName = ''; } }