Skip to content

nss-evening-cohort-16/targaryen-spyduh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spyduh: A Social Network for Spies

Get Started:

 $ git clone git@github.com:nss-evening-cohort-16/targaryen-spyduh.git
 $ cd targaryen-spyduh

About the Users

  • 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.

Features:

  • 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.

Code Snippet:

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;
  }

Planning:

2022-02-05 (1)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages