コード例 #1
0
        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;
        }
コード例 #2
0
 public DBBlocking()
 {
     Blocker = new DBAppUser();
     Blocked = new DBAppUser();
 }
コード例 #3
0
 public DBBookmark()
 {
     DBAppUser = new DBAppUser();
     DBReview  = new DBReview();
 }
コード例 #4
0
 public DBReply()
 {
     DBAppUser = new DBAppUser();
     DBReview  = new DBReview();
 }
コード例 #5
0
 public DBFollowing()
 {
     Follower  = new DBAppUser();
     Following = new DBAppUser();
 }
コード例 #6
0
 public DBLike()
 {
     DBAppUser = new DBAppUser();
     DBReview  = new DBReview();
 }