Ejemplo n.º 1
0
 public void AddFollower(ApiFollowerClientResponseModel item)
 {
     if (!this.Followers.Any(x => x.Id == item.Id))
     {
         this.Followers.Add(item);
     }
 }
        public virtual ApiFollowerClientRequestModel MapClientResponseToRequest(
            ApiFollowerClientResponseModel response)
        {
            var request = new ApiFollowerClientRequestModel();

            request.SetProperties(
                response.Blocked,
                response.DateFollowed,
                response.FollowedUserId,
                response.FollowingUserId,
                response.FollowRequestStatu,
                response.Muted);
            return(request);
        }
        public virtual ApiFollowerClientResponseModel MapClientRequestToResponse(
            int id,
            ApiFollowerClientRequestModel request)
        {
            var response = new ApiFollowerClientResponseModel();

            response.SetProperties(id,
                                   request.Blocked,
                                   request.DateFollowed,
                                   request.FollowedUserId,
                                   request.FollowingUserId,
                                   request.FollowRequestStatu,
                                   request.Muted);
            return(response);
        }