* -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
46 lines
830 B
TypeScript
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
|
|
} |