private Comment MapInstagramComment(InstagramComment reader) { Comment comment = new Comment() { Id = reader.Id, Username = reader.Username, Text = reader.Text, Timestamp = DataReaderUtils.GetDateTime(reader.Timestamp), Likes = DataReaderUtils.GetInt(reader.Like_count) }; return(comment); }
private Post MapInstagramMedia(InstagramMedia reader) { Post post = new Post() { Id = reader.Id, Username = reader.Username, Text = reader.Caption, Timestamp = DataReaderUtils.GetDateTime(reader.Timestamp), Likes = DataReaderUtils.GetInt(reader.Like_count) }; return(post); }