
import { Friendship, FriendshipStatus } from "./entities/friendship.entity";


// Ok i don't really know what i'm doing but i want a thing that is typeset that i can use to send info back to the Front when they create a friendship or ask for a friendship
// Ok it doesn't seem like i really need an interface, that just enfoces the types

// export interface SendableFriendship {
export class SendableFriendship {
  id: number;
  date: Date;
  senderUsername: string;
  receiverUsername: string;
  status: FriendshipStatus;

  // if my constructor is here won't it get sent all over the place too?
  constructor(friendship: Friendship) {
		this.id = friendship.id;
		this.date = friendship.date
		this.senderUsername = friendship.sender.username;
		this.receiverUsername = friendship.receiver.username;
		this.status = friendship.status;
	};
}