"Fossies" - the Fresh Open Source Software Archive

Member "jitsi-meet-7305/react/features/polls/actionTypes.ts" (26 May 2023, 1406 Bytes) of package /linux/misc/jitsi-meet-7305.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "actionTypes.ts": jitsi-meet_8319_vs_jitsi-meet_8615.

    1 /**
    2  * The type of the action which signals that a Poll will be changed
    3  *
    4  * {
    5  *     type: CHANGE_VOTE,
    6  * }
    7  *
    8  */
    9 export const CHANGE_VOTE = 'CHANGE_VOTE';
   10 
   11 /**
   12  * The type of the action which signals that we need to clear all polls from the state.
   13  * For example we are moving to another conference.
   14  *
   15  * {
   16  *     type: CLEAR_POLLS
   17  * }
   18  */
   19 export const CLEAR_POLLS = 'CLEAR_POLLS';
   20 
   21 /**
   22  * The type of the action which signals that a new Poll was received.
   23  *
   24  * {
   25  *     type: RECEIVE_POLL,
   26  *     poll: Poll,
   27  *     pollId: string,
   28  *     notify: boolean
   29  * }
   30  *
   31  */
   32 export const RECEIVE_POLL = 'RECEIVE_POLL';
   33 
   34 /**
   35  * The type of the action which signals that a new Answer was received.
   36  *
   37  * {
   38  *     type: RECEIVE_ANSWER,
   39  *     answer: Answer,
   40  *     pollId: string,
   41  * }
   42  */
   43 export const RECEIVE_ANSWER = 'RECEIVE_ANSWER';
   44 
   45 /**
   46  * The type of the action which registers a vote.
   47  *
   48  * {
   49  *     type: REGISTER_VOTE,
   50  *     answers: Array<boolean> | null,
   51  *     pollId: string
   52  * }
   53  */
   54 export const REGISTER_VOTE = 'REGISTER_VOTE';
   55 
   56 /**
   57  * The type of the action which retracts a vote.
   58  *
   59  * {
   60  *     type: RETRACT_VOTE,
   61  *     pollId: string,
   62  * }
   63  */
   64 export const RETRACT_VOTE = 'RETRACT_VOTE';
   65 
   66 /**
   67  * The type of the action triggered when the poll tab in chat pane is closed
   68  *
   69  * {
   70  *     type: RESET_NB_UNREAD_POLLS,
   71  * }
   72  */
   73 export const RESET_NB_UNREAD_POLLS = 'RESET_NB_UNREAD_POLLS';