Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "event/rating/event-rating.service"

Index

Functions

_range

  • _range(from: any, to: any): any[]

areVotesAllowed

  • areVotesAllowed(event: any): boolean

canVoteInEvent

  • canVoteInEvent(user: any, event: any): Promise<boolean>

canVoteOnEntry

  • canVoteOnEntry(user: any, entry: any): Promise<boolean>

clearRankings

  • clearRankings(event: any): Promise<any>

computeKarma

  • computeKarma(received: any, given: any): number

computeKarmaGivenByUserAndEntry

  • computeKarmaGivenByUserAndEntry(entry: any, event: any): Promise<object>

computeKarmaReceivedByUser

  • computeKarmaReceivedByUser(entry: any): Promise<object>

computeRankings

  • computeRankings(event: any): Promise<any>

countEntryVotes

  • countEntryVotes(entry: any): Promise<number>

findEntryRankings

  • findEntryRankings(event: any, division: any, categoryIndex: any): Promise<any>

findEntryVote

  • findEntryVote(user: any, entry: any): Promise<any>

findVoteHistory

  • findVoteHistory(userId: any, event: any, options?: any): Promise<any>
  • Finds the votes a user cast during an event

    Parameters

    • userId: any
    • event: any
    • Default value options: any = {}

      allowed: pageSize withRelated

    Returns Promise<any>

refreshEntryKarma

  • refreshEntryKarma(entry: any, event: any): Promise<void>

refreshEntryRatings

  • refreshEntryRatings(entry: any): Promise<void>

saveEntryVote

  • saveEntryVote(user: any, entry: any, event: any, voteData: number[]): Promise<void>

Generated using TypeDoc