import { GiftService } from "https://deno.land/x/sptaki@1.2.0/services/GiftService.d.ts";
Constructors
new
GiftService(logger: ILogger,
mailSendService: MailSendService,
hashUtil: HashUtil,
timeUtil: TimeUtil,
profileHelper: ProfileHelper,
configServer: ConfigServer,
Properties
protected
configServer: ConfigServerprotected
giftConfig: IGiftsConfigprotected
hashUtil: HashUtilprotected
logger: ILoggerprotected
mailSendService: MailSendServiceprotected
profileHelper: ProfileHelperprotected
timeUtil: TimeUtilMethods
protected
getMessageType(giftData: Gift): MessageTypeConvert GiftSenderType into a dialog MessageType
protected
getSenderId(giftData: Gift): stringGet sender id based on gifts sender type enum
giftExists(giftId: string): boolean
Does a gift with a specific ID exist in db
sendGiftToPlayer(playerId: string, giftId: string): GiftSentResult
Send player a gift from a range of sources
sendPraporStartingGift(sessionId: string, day: number): void
Prapor sends gifts to player for first week after profile creation