// // ModerationFlags.h // libraries/shared/src // // Created by Kalila L. on Mar 11 2021. // Copyright 2021 Vircadia contributors. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #ifndef overte_ModerationFlags_h #define overte_ModerationFlags_h class ModerationFlags { public: /*@jsdoc *

A set of flags for moderation ban actions. The value is constructed by using the | (bitwise OR) operator on the * individual flag values.

* * * * * * * * * * *
Flag NameValueDescription
NO_BAN0Don't ban user when kicking. This does not currently have an effect.
BAN_BY_USERNAME1Ban the person by their username.
BAN_BY_FINGERPRINT2Ban the person by their machine fingerprint.
BAN_BY_IP4Ban the person by their IP address.
* @typedef {number} BanFlags */ enum BanFlags { NO_BAN = 0, BAN_BY_USERNAME = 1, BAN_BY_FINGERPRINT = 2, BAN_BY_IP = 4 }; static constexpr unsigned int getDefaultBanFlags() { return (BanFlags::BAN_BY_USERNAME | BanFlags::BAN_BY_FINGERPRINT); }; }; #endif // overte_ModerationFlags_h