UNPKG

getsocial-react-native-sdk

Version:
30 lines (27 loc) 618 B
// @flow /** * MemberStatus object. */ export default class MemberStatus { /** User is not approved yet */ static ApprovalPending = 0; /** User has not accepted the invitation yet */ static InvitationPending = 1; /** Member */ static Member = 2; /** Rejected */ static Rejected = 3; // eslint-disable-next-line require-jsdoc static valueToName(value: number): string { switch (value) { case 0: return 'approval pending'; case 1: return 'invitation pending'; case 2: return 'member'; case 3: return 'rejected'; } } }