C# Class Docary.Services.EntryService

Inheritance: IEntryService
Exibir arquivo Open project: JefClaes/Docary Class Usage Examples

Public Methods

Method Description
AddEntry ( Entry entry ) : void
EntryService ( IEntryRepository entryRepository, ILocationRepository locationRepository, ITagRepository tagRepository, ITimelineColorService timelineColorService, ITimeService timeService, IScope scope ) : System
GetEntries ( System.DateTime createdOnMin, System.DateTime createdOnMax, string userId ) : IEnumerable
GetFirstRealEntry ( string userId ) : Entry
GetLatestEntry ( string userId ) : Entry
GetNumberOfEntries ( string userId ) : int

Private Methods

Method Description
AddFirstOffTheGridEntry ( string userId, System.DateTime stoppedOn ) : void
AddLocationBasedOnEntry ( Entry entry ) : Location
AddOffTheGridLocation ( string userId ) : Location
AddOffTheGridTag ( string userId ) : EntryTag
AddTagBasedOnEntry ( Entry entry ) : EntryTag

Method Details

AddEntry() public method

public AddEntry ( Entry entry ) : void
entry Docary.Models.Entry
return void

EntryService() public method

public EntryService ( IEntryRepository entryRepository, ILocationRepository locationRepository, ITagRepository tagRepository, ITimelineColorService timelineColorService, ITimeService timeService, IScope scope ) : System
entryRepository IEntryRepository
locationRepository ILocationRepository
tagRepository ITagRepository
timelineColorService ITimelineColorService
timeService ITimeService
scope IScope
return System

GetEntries() public method

public GetEntries ( System.DateTime createdOnMin, System.DateTime createdOnMax, string userId ) : IEnumerable
createdOnMin System.DateTime
createdOnMax System.DateTime
userId string
return IEnumerable

GetFirstRealEntry() public method

public GetFirstRealEntry ( string userId ) : Entry
userId string
return Docary.Models.Entry

GetLatestEntry() public method

public GetLatestEntry ( string userId ) : Entry
userId string
return Docary.Models.Entry

GetNumberOfEntries() public method

public GetNumberOfEntries ( string userId ) : int
userId string
return int