Exemple #1
0
 public static void UpdateFromRequest(this FeedItem item, FeedItemRequest request, Pooper pooper)
 {
     item.Pooper      = pooper;
     item.Duration    = request.Duration;
     item.Description = request.Description;
     item.Poop        = request.Poop;
     item.Wizz        = request.Wizz;
 }
Exemple #2
0
 public static FeedItem AsFeedItem(this FeedItemRequest request, Pooper pooper)
 {
     return(new FeedItem
     {
         Pooper = pooper,
         Duration = request.Duration,
         Description = request.Description,
         Poop = request.Poop,
         Wizz = request.Wizz
     });
 }