mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
🆙 Init V3
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export class ClubStatus
|
||||
{
|
||||
public static ACTIVE: string = 'active';
|
||||
public static NONE: string = 'none';
|
||||
public static EXPIRED: string = 'expired';
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
const DEFAULT_BADGE: string = 'HC1';
|
||||
const BADGES: string[] = [ 'ACH_VipHC1', 'ACH_VipHC2', 'ACH_VipHC3', 'ACH_VipHC4', 'ACH_VipHC5', 'HC1', 'HC2', 'HC3', 'HC4', 'HC5' ];
|
||||
|
||||
export const GetClubBadge = (badgeCodes: string[]) =>
|
||||
{
|
||||
let badgeCode: string = null;
|
||||
|
||||
BADGES.forEach(badge => ((badgeCodes.indexOf(badge) > -1) && (badgeCode = badge)));
|
||||
|
||||
return (badgeCode || DEFAULT_BADGE);
|
||||
};
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from './ClubStatus';
|
||||
export * from './GetClubBadge';
|
||||
Reference in New Issue
Block a user