C# Class SnakeBattleNet.Web.Core.SnakeStore

Inheritance: ISnakeStore
Show file Open project: FoC-/SnakeBattle.Net

Public Methods

Method Description
GetAll ( ) : IEnumerable
GetById ( string snakeId ) : Snake
GetByOwnerId ( string ownerId ) : IEnumerable
RemoveSnake ( string snakeId ) : void
SaveSnake ( Snake snake ) : void
SnakeStore ( MongoCollection snakesCollection ) : System.Collections.Generic

Method Details

GetAll() public method

public GetAll ( ) : IEnumerable
return IEnumerable

GetById() public method

public GetById ( string snakeId ) : Snake
snakeId string
return Snake

GetByOwnerId() public method

public GetByOwnerId ( string ownerId ) : IEnumerable
ownerId string
return IEnumerable

RemoveSnake() public method

public RemoveSnake ( string snakeId ) : void
snakeId string
return void

SaveSnake() public method

public SaveSnake ( Snake snake ) : void
snake Snake
return void

SnakeStore() public method

public SnakeStore ( MongoCollection snakesCollection ) : System.Collections.Generic
snakesCollection MongoCollection
return System.Collections.Generic