public void AddTweet(ApiTweetClientResponseModel item) { if (!this.Tweets.Any(x => x.TweetId == item.TweetId)) { this.Tweets.Add(item); } }
public virtual ApiTweetClientRequestModel MapClientResponseToRequest( ApiTweetClientResponseModel response) { var request = new ApiTweetClientRequestModel(); request.SetProperties( response.Content, response.Date, response.LocationId, response.Time, response.UserUserId); return(request); }
public virtual ApiTweetClientResponseModel MapClientRequestToResponse( int tweetId, ApiTweetClientRequestModel request) { var response = new ApiTweetClientResponseModel(); response.SetProperties(tweetId, request.Content, request.Date, request.LocationId, request.Time, request.UserUserId); return(response); }
public void SetTweetTweetIdNavigation(ApiTweetClientResponseModel value) { this.TweetTweetIdNavigation = value; }