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
usageTypeIriWhat the attachment is used for, for example
http://adlnet.gov/expapi/attachments/signature.displayLanguageMapThe title.
contentTypestringThe Internet media type of the data.
lengthlongThe length of the data in octets.
sha2stringThe hexadecimal SHA-2 hash of the data.
Properties
ContentType
The Internet media type of the data.
public string ContentType { get; init; }
Property Value
Description
A description.
public LanguageMap? Description { get; init; }
Property Value
Display
The title.
public LanguageMap Display { get; init; }
Property Value
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
Sha2
The hexadecimal SHA-2 hash of the data. Required even when FileUrl is set.
public string Sha2 { get; init; }
Property Value
UsageType
What the attachment is used for.
public Iri UsageType { get; init; }