import { Event, EventType } from "../../../event/core/event"; /** * User Login Event. * * Should be used whenever an user logins to the site, * or when you want to send/update user information in * the server. * * Email is a obrigatory field. If allowMailMarketing is not * passed, `true` will be assumed. * * @export * @class SessionUserEvent * @extends {Event} */ export class SessionUserEvent extends Event { public user?: string = null; public name?: string = null; public gender?: string = null; public language?: string = null; public type: EventType = EventType.SessionUser; /** * Creates an instance of SessionUserEvent. * * @param {string} email * @param {boolean} [marketing=true] * @memberof SessionUserEvent */ constructor(public email: string, public marketing: boolean = true) { super(); } }