PromucFlow_constructor/app/rts/src/models.ts
Nayan cf2ebe585c
[Feature] - Add api for concurrent page editors (#6542)
* -added socket io namespace and events to broadcast start and edit page

* -broadcast mouse pointers from rts
-add a mouse pointer simulator to show the events in action

* -removed sample file
2021-08-18 05:37:01 +00:00

46 lines
830 B
TypeScript

export class AppUser {
name: string;
email: string;
constructor(name: string, email: string) {
this.name = name;
this.email = email;
}
}
export class CurrentEditorsEvent {
resourceId: string;
users: AppUser [];
constructor(resourceId: string, users: AppUser []) {
this.resourceId = resourceId;
this.users = users;
}
}
export class MousePointerEvent {
pageId: string
socketId: string
user: AppUser
data: object
}
export interface Policy {
permission: string
users: string[]
groups: string[]
}
export interface CommentThread {
applicationId: string
}
export interface Comment {
threadId: string
policies: Policy[]
createdAt: string
updatedAt: string
creationTime: string
updationTime: string
deleted: boolean
}