Pawnote
    Preparing search index...

    Function resource

    • Retrieve a specific resource by its ID.

      Parameters

      • session: SessionHandle

        The current session handle.

      • resourceID: string

        The ID of the resource to retrieve.

      Returns Promise<
          Readonly<
              {
                  assignmentDeadline?: Date;
                  backgroundColor: string;
                  contents: Readonly<
                      {
                          category: ResourceContentCategory;
                          categoryText?: string;
                          description?: string;
                          educativeValue: number;
                          files: Readonly<
                              { id: string; kind: AttachmentKind; name: string; url: string },
                          >[];
                          id: string;
                          themes: Readonly<{ id: string; name: string; subject: Subject }>[];
                          title?: string;
                      },
                  >[];
                  endDate: Date;
                  groups: string[];
                  haveAssignment: boolean;
                  id: string;
                  startDate: Date;
                  subject: Subject;
                  teachers: string[];
              },
          >,
      >

      A promise that resolves to the resource.