Table of Contents

Class Attachment

Namespace
Xapi
Assembly
Xapi.Core.dll

The header of a Statement attachment: what it is, its type, size and hash.

public sealed record Attachment : IEquatable<Attachment>
Inheritance
Attachment
Implements
Inherited Members

Remarks

IEEE 9274.1.1, 4.2.2.6 "Attachments Table".

Constructors

Attachment(Iri, LanguageMap, string, long, string)

Creates an attachment header.

public Attachment(Iri usageType, LanguageMap display, string contentType, long length, string sha2)

Parameters

usageType Iri

What the attachment is used for, for example http://adlnet.gov/expapi/attachments/signature.

display LanguageMap

The title.

contentType string

The Internet media type of the data.

length long

The length of the data in octets.

sha2 string

The hexadecimal SHA-2 hash of the data.

Properties

ContentType

The Internet media type of the data.

public string ContentType { get; init; }

Property Value

string

Description

A description.

public LanguageMap? Description { get; init; }

Property Value

LanguageMap

Display

The title.

public LanguageMap Display { get; init; }

Property Value

LanguageMap

FileUrl

An IRL the data can be retrieved from.

public Iri? FileUrl { get; init; }

Property Value

Iri?

Length

The length of the data in octets.

public long Length { get; init; }

Property Value

long

Sha2

The hexadecimal SHA-2 hash of the data. Required even when FileUrl is set.

public string Sha2 { get; init; }

Property Value

string

UsageType

What the attachment is used for.

public Iri UsageType { get; init; }

Property Value

Iri