package com.foxx.androidcast.entitlements;

/** Bitmask constants for paid / licensed app capabilities (40-bit payload). */
public final class EntitlementFlags {
    private EntitlementFlags() {}

    /** All encodable payload bits — dev builds unlock everything. */
    public static final long DEV_ALL_PAYLOAD = 0xFFFFFFFFFFL;

    public static boolean hasFeature(long flags, long featureBit) {
        return featureBit != 0L && (flags & featureBit) == featureBit;
    }

    public static boolean hasAnyPaidBit(long flags) {
        return flags != 0L;
    }
}
