UNPKG

@xmobitea/gn-server

Version:

GearN Server by XmobiTea (Pro)

33 lines (32 loc) 1.35 kB
import * as mongoDB from "mongodb"; import { ExternalItem } from "./ExternalItem"; import { PlayerBase } from "./PlayerBase"; import { IPDetailItem } from "./IPDetailItem"; import { PushNotificationItem } from "./PushNotificationItem"; export declare class MasterPlayer extends PlayerBase { private static readonly _external; private static readonly _userId; private static readonly _email; private static readonly _lastIPDetail; private static readonly _pushNotifications; private readonly userId; private external; private email; private lastIPDetail; private pushNotifications; constructor(result: mongoDB.WithId<mongoDB.Document>, collection: mongoDB.Collection<mongoDB.Document>); private setDocumentMasterPlayer; getUserId(): string; getPassword(): string; getExternal(): ExternalItem; setExternal(externalItem: ExternalItem): void; getEmail(): string; setEmail(email: string): void; getLastIPDetail(): IPDetailItem; setLastIPDetail(ipDetail: IPDetailItem): void; getAllPushNotifications(): Array<PushNotificationItem>; hasPushNotification(pushId: string): boolean; getPushNotification(pushId: string): PushNotificationItem; setPushNotification(pushId: string, value: PushNotificationItem): void; removePushNotification(pushId: string): void; }