Пример #1
0
 public void AddFeed(ApiFeedResponseModel item)
 {
     if (!this.Feeds.Any(x => x.Id == item.Id))
     {
         this.Feeds.Add(item);
     }
 }
Пример #2
0
        public virtual ApiFeedRequestModel MapResponseToRequest(
            ApiFeedResponseModel response)
        {
            var request = new ApiFeedRequestModel();

            request.SetProperties(
                response.FeedType,
                response.FeedUri,
                response.JSON,
                response.Name);
            return(request);
        }
Пример #3
0
        public virtual ApiFeedResponseModel MapRequestToResponse(
            string id,
            ApiFeedRequestModel request)
        {
            var response = new ApiFeedResponseModel();

            response.SetProperties(id,
                                   request.FeedType,
                                   request.FeedUri,
                                   request.JSON,
                                   request.Name);
            return(response);
        }