Take control over your live stream video by running it yourself. Streaming + chat out of the box.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
462 B

import { User } from './user.model';
export const createUser = (name: string, color: number, createdAt: Date): User => ({
id: name,
displayName: name,
displayColor: color,
createdAt,
authenticated: true,
nameChangedAt: createdAt,
previousNames: [],
scopes: [],
isModerator: () => false,
});
export const spidermanUser = createUser('Spiderman', 1, new Date(2020, 1, 2));
export const grootUser = createUser('Groot', 1, new Date(2020, 2, 3));