Esempio n. 1
0
 public void AddFollowing(ApiFollowingClientResponseModel item)
 {
     if (!this.Followings.Any(x => x.UserId == item.UserId))
     {
         this.Followings.Add(item);
     }
 }
        public virtual ApiFollowingClientRequestModel MapClientResponseToRequest(
            ApiFollowingClientResponseModel response)
        {
            var request = new ApiFollowingClientRequestModel();

            request.SetProperties(
                response.DateFollowed,
                response.Muted);
            return(request);
        }
        public virtual ApiFollowingClientResponseModel MapClientRequestToResponse(
            int userId,
            ApiFollowingClientRequestModel request)
        {
            var response = new ApiFollowingClientResponseModel();

            response.SetProperties(userId,
                                   request.DateFollowed,
                                   request.Muted);
            return(response);
        }