public DBReview(JObject review) : this() { AppUserId = review["app_user_id"] != null ? (int)review["app_user_id"] : 0; ReviewableId = review["reviewable_id"] != null ? (int)review["reviewable_id"] : 0; Title = (string)review["title"]; Comment = (string)review["comment"]; Emojis = (string)review["emojis"]; if (review["reviewable"] != null) { DBReviewable = new DBReviewable((JObject)review["reviewable"]); } if (review["app_user"] != null) { DBAppUser = new DBAppUser((JObject)review["app_user"]); } Created = DateTime.Now; }
public DBBlocking() { Blocker = new DBAppUser(); Blocked = new DBAppUser(); }
public DBBookmark() { DBAppUser = new DBAppUser(); DBReview = new DBReview(); }
public DBReply() { DBAppUser = new DBAppUser(); DBReview = new DBReview(); }
public DBFollowing() { Follower = new DBAppUser(); Following = new DBAppUser(); }
public DBLike() { DBAppUser = new DBAppUser(); DBReview = new DBReview(); }