Exemple #1
0
 public void AddRetweet(ApiRetweetResponseModel item)
 {
     if (!this.Retweets.Any(x => x.Id == item.Id))
     {
         this.Retweets.Add(item);
     }
 }
Exemple #2
0
        public virtual ApiRetweetRequestModel MapResponseToRequest(
            ApiRetweetResponseModel response)
        {
            var request = new ApiRetweetRequestModel();

            request.SetProperties(
                response.Date,
                response.RetwitterUserId,
                response.Time,
                response.TweetTweetId);
            return(request);
        }
Exemple #3
0
        public virtual ApiRetweetResponseModel MapRequestToResponse(
            int id,
            ApiRetweetRequestModel request)
        {
            var response = new ApiRetweetResponseModel();

            response.SetProperties(id,
                                   request.Date,
                                   request.RetwitterUserId,
                                   request.Time,
                                   request.TweetTweetId);
            return(response);
        }