using System; using System.Collections.Generic; using System.Linq; using System.Web; using instavibe.Models; namespace InstaVibe.Models { public class Post { public int PostId { get; set; } // optional public int UserId { get; set; } // set from Session public string Caption { get; set; } public string MediaUrl { get; set; } // to save the path in DB public HttpPostedFileBase UploadedFile { get; set; } // used for upload public DateTime CreatedAt { get; set; } // optional public string UserProfilePic { get; set; } public string Username { get; set; } public bool IsLikedByCurrentUser { get; set; } public int LikeCount { get; set; } public string TopLiker { get; set; } public string TopLikerProfilePic { get; set; } public List Likes { get; set; } public bool Accepted { get; set; } public bool IsDeleted { get; set; } public string UserType { get; set; } // Student / Alumni } }