示例#1
0
 public void AddRetweet(ApiRetweetClientResponseModel item)
 {
     if (!this.Retweets.Any(x => x.Id == item.Id))
     {
         this.Retweets.Add(item);
     }
 }
示例#2
0
        public virtual ApiRetweetClientRequestModel MapClientResponseToRequest(
            ApiRetweetClientResponseModel response)
        {
            var request = new ApiRetweetClientRequestModel();

            request.SetProperties(
                response.Date,
                response.RetwitterUserId,
                response.Time,
                response.TweetTweetId);
            return(request);
        }
示例#3
0
        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);
        }