blob: 28e83098228fa2799425944da7e8e9c48cc81a51 [file] [log] [blame]
import {kViewUnifiedUserResponseEvent} from '../consts.js';
import ResponseEventBasedInfoHandler from './basedOnResponseEvent.js';
export default class ProfileInfoHandler extends ResponseEventBasedInfoHandler {
getEvent() {
return kViewUnifiedUserResponseEvent;
}
async isInfoCurrent() {
return Date.now() - this.info.timestamp < 15 * 1000;
}
getWaitForCurrentInfoOptions() {
return {
interval: 500,
timeout: 15 * 1000,
};
}
}