2022-11-06 16:20:54 +00:00
|
|
|
class Robot {
|
2023-03-02 11:01:06 +00:00
|
|
|
constructor(garageRobot?: Robot) {
|
|
|
|
if (garageRobot) {
|
|
|
|
this.token = garageRobot?.token ?? undefined;
|
|
|
|
this.pubKey = garageRobot?.pubKey ?? undefined;
|
|
|
|
this.encPrivKey = garageRobot?.encPrivKey ?? undefined;
|
|
|
|
}
|
2022-11-06 16:20:54 +00:00
|
|
|
}
|
2022-10-31 16:20:20 +00:00
|
|
|
|
2022-11-06 16:20:54 +00:00
|
|
|
public nickname?: string;
|
|
|
|
public token?: string;
|
|
|
|
public pubKey?: string;
|
|
|
|
public encPrivKey?: string;
|
|
|
|
public bitsEntropy?: number;
|
|
|
|
public shannonEntropy?: number;
|
|
|
|
public stealthInvoices: boolean = true;
|
|
|
|
public activeOrderId?: number;
|
|
|
|
public lastOrderId?: number;
|
|
|
|
public earnedRewards: number = 0;
|
|
|
|
public referralCode: string = '';
|
|
|
|
public tgEnabled: boolean = false;
|
|
|
|
public tgBotName: string = 'unknown';
|
|
|
|
public tgToken: string = 'unknown';
|
|
|
|
public loading: boolean = false;
|
2023-02-24 19:17:13 +00:00
|
|
|
public found: boolean = false;
|
2022-11-06 16:20:54 +00:00
|
|
|
public avatarLoaded: boolean = false;
|
|
|
|
public copiedToken: boolean = false;
|
|
|
|
}
|
2022-10-20 17:24:53 +00:00
|
|
|
|
|
|
|
export default Robot;
|