C# Class Saimoe.Core.ContestantService

@author: Tsinghua . @description: Manage all business relate to contestant
Afficher le fichier Open project: quietlynn/gplus.saimoe Class Usage Examples

Méthodes publiques

Méthode Description
AddContestant ( Contestant contestant ) : void

Add a contestant to database

ContestantService ( ContestantRepository contestantRepository = null ) : System
GetContestant ( string googlePlusId ) : Contestant

Get contestant registration info by given google plus id

UpdateContestantProfile ( string googlePlusId, Profile profile ) : void

Update profile of contestant

Method Details

AddContestant() public méthode

Add a contestant to database
public AddContestant ( Contestant contestant ) : void
contestant Saimoe.Models.Contestant
Résultat void

ContestantService() public méthode

public ContestantService ( ContestantRepository contestantRepository = null ) : System
contestantRepository Saimoe.Repository.ContestantRepository
Résultat System

GetContestant() public méthode

Get contestant registration info by given google plus id
public GetContestant ( string googlePlusId ) : Contestant
googlePlusId string
Résultat Saimoe.Models.Contestant

UpdateContestantProfile() public méthode

Update profile of contestant
public UpdateContestantProfile ( string googlePlusId, Profile profile ) : void
googlePlusId string
profile Saimoe.Models.Profile
Résultat void