Esempio n. 1
0
        public virtual ApiDirectTweetClientRequestModel MapClientResponseToRequest(
            ApiDirectTweetClientResponseModel response)
        {
            var request = new ApiDirectTweetClientRequestModel();

            request.SetProperties(
                response.Content,
                response.Date,
                response.TaggedUserId,
                response.Time);
            return(request);
        }
Esempio n. 2
0
        public virtual ApiDirectTweetClientResponseModel MapClientRequestToResponse(
            int tweetId,
            ApiDirectTweetClientRequestModel request)
        {
            var response = new ApiDirectTweetClientResponseModel();

            response.SetProperties(tweetId,
                                   request.Content,
                                   request.Date,
                                   request.TaggedUserId,
                                   request.Time);
            return(response);
        }