Class MessageContext
- Namespace
- GuildWars2
- Assembly
- GW2SDK.dll
Contains message metadata.
public sealed record MessageContext : IEquatable<MessageContext>
- Inheritance
-
MessageContext
- Implements
- Inherited Members
Constructors
- MessageContext(HttpResponseMessage)
Initializes a new instance of the MessageContext class.
Properties
- Date
The date and time at which the message was originated.
- Expires
The date and time after which the value should be considered stale. It is suggested to update your cache after this moment. When this value is missing, you may calculate your own expiration by adding a cache duration to the LastModified value.
- LastModified
The date and time that indicate when the value was last modified. You may use this value to calculate an absolute expiration for your cache by adding a cache duration (max-age) of your choice. When this value is missing, you may use the Date value instead for the calculation.
- Links
When the response is a page, this value contains links to related pages.
- PageSize
When the response is a page, this value indicates the maximum number of items per page.
- PageTotal
When the response is a page, this value indicates the total number of pages.
- ResultCount
When the response is a (sub)set, this value indicates the size of the subset.
- ResultTotal
When the response is a (sub)set, this value indicates the total size of the set.