Parameters
- _from: ActorRef
- message:
| { tag: "Clear" } & { value: {} }
| { tag: "AddExisting" } & {
value: { name: string; uid: string & BRAND<"UID"> }[];
}
| { tag: "AddEntry" } & { value: string }
| { tag: "DeleteEntry" } & { value: string & BRAND<"UID"> }
| { tag: "DeleteError" } & { value: string & BRAND<"UID"> }
| { tag: "Share" } & {
value: {
allowedQuestionTypesSettings: Partial<
Record<"SINGLE" | "MULTIPLE" | "TEXT", boolean>,
>;
archived?: Timestamp;
comments: (string & BRAND<"UID">)[];
created: Timestamp;
createdBy?: string & BRAND<"UID">;
description: string;
groups: {
name: string;
questions: (string & BRAND<"UID">)[];
statistics?: {
answers: number[];
correctAnswers: number[];
groupName: string;
maximumParticipants: number;
questionIds: (string & BRAND<(...)>)[];
quizId: string & BRAND<"UID">;
wrongAnswers: number[];
};
}[];
hideComments: boolean;
lastExport?: Timestamp;
previewers?: (string & BRAND<"UID">)[];
runOptions?: { runningEntity?: string & BRAND<"UID"> };
shuffleAnswers: boolean;
shuffleQuestions: boolean;
state: "EDITING" | "ACTIVE" | "STARTED" | "STOPPED";
statistics?: {
answers: number[];
correctAnswers: number[];
groupName: string;
maximumParticipants: number;
questionIds: (string & BRAND<"UID">)[];
quizId: string & BRAND<"UID">;
wrongAnswers: number[];
};
studentComments: boolean;
studentParticipationSettings: Partial<
Record<"NAME" | "NICKNAME" | "ANONYMOUS", boolean>,
>;
studentQuestions: boolean;
students: (string & BRAND<"UID">)[];
studentsCanSeeStatistics?: boolean;
teachers: (string & BRAND<"UID">)[];
title: string;
uid: string & BRAND<"UID">;
uniqueLink: string;
updated: Timestamp;
};
}
Returns Promise<Unit>
promised return value. If the caller used ask, this value will be returned to the calling actor
Abstract method that handles all incoming messages