Example #1
0
 public void AddFollowing(ApiFollowingResponseModel item)
 {
     if (!this.Followings.Any(x => x.UserId == item.UserId))
     {
         this.Followings.Add(item);
     }
 }
        public virtual ApiFollowingRequestModel MapResponseToRequest(
            ApiFollowingResponseModel response)
        {
            var request = new ApiFollowingRequestModel();

            request.SetProperties(
                response.DateFollowed,
                response.Muted);
            return(request);
        }
        public virtual ApiFollowingResponseModel MapRequestToResponse(
            string userId,
            ApiFollowingRequestModel request)
        {
            var response = new ApiFollowingResponseModel();

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