$ git clone git@github.com:nss-evening-cohort-16/targaryen-spyduh.git
$ cd targaryen-spyduh
- This social network allows spies to create SpyDuh accounts with their (im)personal details, including why they became a spy, as well as to socialize and find friends with similar skills. Using Postman, the spy can make calls to the API to make specific requests depending on their needs.
- Spies can join the social network, listing their codename, skills/services, origin story, and days until undercover assignment is over.
- Spies can see their friends/enemies and friends of their friends.
- Spies can search by skill, days left in undercover assignment, and see all spies in the network.
- Spies can also make updates to their profile or delete it entirely.
internal object GetFriendsOfFriends(string name, SpyRelationship spyRelationship)
{
var matchingSpy = _spies.FirstOrDefault(s => s.CodeName == name);
var friends = _spies.Where(matchingSpy => matchingSpy.Relationship == spyRelationship);
var friendsOrEnemies = friends.Where(s => s.CodeName != name);
return friendsOrEnemies;
}