more junk from core

This commit is contained in:
talksik
2022-06-10 05:33:31 -05:00
parent 445d1ef522
commit fb597b8c31
10 changed files with 13 additions and 65 deletions
@@ -1,5 +0,0 @@
export default class ErrorResponse {
status: number;
message: string;
detail: string;
}
@@ -1,14 +0,0 @@
import Relationship from "../models/relationship.model";
import { User } from "../models/user.model";
export default class GetContactsResponse {
contactsDetails: ContactDetails[] = [];
constructor() {}
}
export class ContactDetails {
isSpeaking: boolean = false;
constructor(public otherUser: User, public relationship: Relationship) {}
}
@@ -1,14 +0,0 @@
import Content from "../models/content.model";
import Relationship from "../models/relationship.model";
import { User } from "@nirvana/core/models";
export default class GetConversationDetailsResponse {
// get the messages for this conversation for like last 7 days or just a count of them until we paginate?
constructor(
public contactUser: User,
public isLiveOrPinned: boolean,
public ourRelationship?: Relationship,
public latestContent?: Content[]
) {}
}
@@ -1,5 +0,0 @@
import { Line } from "../models/line.model";
export default class GetDmConversationByOtherUserIdResponse {
constructor(public conversation: Conversation) {}
}
@@ -1,6 +0,0 @@
import { Line } from "../models/line.model";
import MasterLineData from "../models/masterLineData.model";
export default class GetUserLinesResponse {
constructor(public masterLines: MasterLineData[]) {}
}
+1 -1
View File
@@ -1,4 +1,4 @@
import { User } from "../models/user.model";
import User from '../models/user.model';
export default class LoginResponse {
constructor(public jwtToken: string, public userDetails: User) {}
@@ -1,4 +1,4 @@
import { User } from "@nirvana/core/models";
import User from '../models/user.model';
export default class UserDetailsResponse {
constructor(public user: User) {}
@@ -1,12 +1,9 @@
import { User } from "@nirvana/core/models";
import User from '../models/user.model';
/**
* Full results from the global search
*/
export default class UserSearchResponse {
// all friends/contacts matching search
contacts?: User[];
// all public users
constructor(public users: User[]) {}
}