public void AddRetweet(ApiRetweetClientResponseModel item) { if (!this.Retweets.Any(x => x.Id == item.Id)) { this.Retweets.Add(item); } }
public virtual ApiRetweetClientRequestModel MapClientResponseToRequest( ApiRetweetClientResponseModel response) { var request = new ApiRetweetClientRequestModel(); request.SetProperties( response.Date, response.RetwitterUserId, response.Time, response.TweetTweetId); return(request); }
public virtual ApiRetweetClientResponseModel MapClientRequestToResponse( int id, ApiRetweetClientRequestModel request) { var response = new ApiRetweetClientResponseModel(); response.SetProperties(id, request.Date, request.RetwitterUserId, request.Time, request.TweetTweetId); return(response); }