We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbb2ae3 commit e8b32a3Copy full SHA for e8b32a3
src/provider/index.ts
@@ -39,8 +39,16 @@ export class Provider {
39
public publishAppointments = publishAppointments
40
public getAppointments = getAppointments
41
42
+ // this will be replaced by persistent storage
43
private _loggedOut: boolean
44
private _openAppointments: Array<Appointment>
45
+ private _id: string
46
+
47
+ constructor(id: string){
48
+ // the ID will be used to address local storage so that e.g. we can
49
+ // manage multiple providers, users etc. if necessary...
50
+ this._id = id
51
+ }
52
53
public get openAppointments(): Array<Appointment> {
54
return this._openAppointments
0 commit comments