import { FeedTag } from './card';

export interface FeedPostImage {
	url: string;
	width: number|null;
	height: number|null;
}

export interface FeedPostDetail {
	postID: number;
	authorSID: string|null;
	authorName: string|null;
	authorThumb: string|null;
	isCreator: boolean;
	channelSID: string|null;
	content: string;
	images: FeedPostImage[];
	medias: string[];
	likes: number;
	comments: number;
	bookmarks: number;
	views: number;
	tags: FeedTag[];
	createdAt: string;
	hasLike: boolean;
	hasBookmark: boolean;
	isOwner: boolean;
}

export interface FeedReply {
	id: number;
	parentID: number|null;
	parentAuthorSID: string|null;
	parentAuthorName: string|null;
	content: string;
	authorSID: string|null;
	authorName: string|null;
	authorThumb: string|null;
	isCreator: boolean;
	likes: number;
	hasLike: boolean;
	isOwner: boolean;
	isDeleted: boolean;
	createdAt: string;
}

export interface FeedRepliesResponse {
	total: number;
	list: FeedReply[];
}

export interface FeedSuggestedFollow {
	sid: string;
	name: string|null;
	thumb: string|null;
	summary: string|null;
	isCreator: boolean;
	followerCount: number;
}

export interface FeedSuggestedFollowsResponse {
	list: FeedSuggestedFollow[];
}