Database Reference
In-Depth Information
"tagstr: p.tagstr, timestamp: p.timestamp, userNameForPost: f.username, owner:
false } "))
.OrderByDescending("p.timestamp")
.Results.ToList();
}
return mappedContent;
}
As with a query for the getContent method in ContentService , the first query in getContentByTag returns a
collection of MappedContent items based on the matching tag, placing no limit on the number of status updates to
be returned. In addition, it marks the owner property as true, because you've determined ahead of time that you are
returning only the current user's content.
Filtering Connected Content
If a tag is clicked on the inside of the “Interests in my Network” section, then the getContentByTag method will be
called with the isCurrentUser value set to false, as shown in Listing 7-39.
The second query is nearly identical to the first query found in getContentByTag , except that it will factor in the
users being followed and exclude the current user. The method also returns a collection of MappedContent items and
matches resulting content to a provide tag, placing no limit on the number of status updates to be returned.
In addition, it marks the owner property as false. The results of calling this method are shown in Figure 7-9 .
Figure 7-9. Filtering the content of current user's friends
 
Search WWH ::




Custom Search