modules/session-flow/src/structures/click.ts
User click in app
getStringObject |
getStringObject()
|
Return object with string params
Returns:
void
|
route |
route: |
Current route where user clicked |
selectorName |
selectorName: |
Selector where user clicked |
time |
time: |
Time when click emitted |
export class UserClick{
/**
* Time when click emitted
*/
time: Date;
/**
* Selector where user clicked
*/
selectorName: string;
/**
* Current route where user clicked
*/
route: string;
/**
* Return object with string params
*/
getStringObject(){
let object = {};
object['route'] = this.route;
object['selectorName'] = this.selectorName;
object['time'] = this.time.toISOString();
return object;
}
}