robosats/frontend/src/models/Robot.model.ts

31 lines
900 B
TypeScript
Raw Normal View History

class Robot {
constructor(garageRobot?: Robot) {
if (garageRobot != null) {
this.token = garageRobot?.token ?? undefined;
this.pubKey = garageRobot?.pubKey ?? undefined;
this.encPrivKey = garageRobot?.encPrivKey ?? undefined;
}
}
2022-10-31 16:20:20 +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;
public found: boolean = false;
public avatarLoaded: boolean = false;
public copiedToken: boolean = false;
}
export default Robot;