more top down but not perfect and optimized
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { Line, LineMember } from "./line.model";
|
||||
import { Line, LineMember } from './line.model';
|
||||
|
||||
import AudioClip from "./audioClip.model";
|
||||
import { ObjectId } from "mongodb";
|
||||
import { User } from "./user.model";
|
||||
import AudioClip from './audioClip.model';
|
||||
import { ObjectId } from 'mongodb';
|
||||
import { User } from './user.model';
|
||||
|
||||
// why do we have separate full objects being sent?
|
||||
// speed...I'm developing full stack and I just want all of the data and don't want to change this model
|
||||
@@ -24,6 +24,18 @@ export default class MasterLineData {
|
||||
// -> all connected line members be able to show this in the right activity section of the lineRow
|
||||
currentBroadcastersUserIds?: string[];
|
||||
|
||||
profilePictures: {
|
||||
allMembers: string[];
|
||||
allMembersWithoutMe: string[];
|
||||
|
||||
untunedMembers: string[];
|
||||
|
||||
tunedMembers: string[];
|
||||
broadcastMembers: string[];
|
||||
};
|
||||
isUserTunedIn: boolean = false;
|
||||
isUserToggleTuned: boolean = false;
|
||||
|
||||
constructor(
|
||||
// full line object
|
||||
public lineDetails: Line,
|
||||
@@ -34,6 +46,6 @@ export default class MasterLineData {
|
||||
// all other members in the convo as well as their user object to see the member details
|
||||
public otherMembers?: LineMember[],
|
||||
|
||||
public otherUserObjects?: User[] /**public audioClips: AudioClip[] = [], // public media: Media[] */
|
||||
public otherUserObjects?: User[] /**public audioClips: AudioClip[] = [], // public media: Media[] */,
|
||||
) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user