# GitHubNotificationSnapshot

Contains a cached, polling-aware snapshot of GitHub notification threads.

Class 

`IntelligenceX.Telemetry.GitHub`

**Namespace**

`IntelligenceX.Telemetry.GitHub`

**Assembly**

`IntelligenceX`

**Source**

[GitHubNotificationModels.cs:98](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubNotificationModels.cs#L98)

**Modifiers**

sealed

Contains a cached, polling-aware snapshot of GitHub notification threads.

## Inheritance

- object
- GitHubNotificationSnapshot

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Method [GitHubNotificationService.FetchAsync](/api/intelligencex-telemetry-github-githubnotificationservice/#method-fetchasync-intelligencex-telemetry-github-githubnotificationquery-threading-cancellationtoken)

Filter members 

Show inherited

## Constructors

`public GitHubNotificationSnapshot(IReadOnlyList<GitHubNotificationThread> threads, DateTimeOffset checkedAtUtc, TimeSpan recommendedPollInterval, int? rateLimitRemaining, bool hasMore = false)` [#](#constructor-ctor-collections-generic-ireadonlylist-intelligencex-telemetry-github-githubnotificationthread-datetimeoffset-timespan-nullable-system-int32-boolean)

[GitHubNotificationModels.cs:98](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubNotificationModels.cs#L98)

Initializes a notification snapshot.

Parameters

**threads System.Collections.Generic.IReadOnlyList<IntelligenceX.Telemetry.GitHub.GitHubNotificationThread> required**

**checkedAtUtc System.DateTimeOffset required**

**recommendedPollInterval System.TimeSpan required**

**rateLimitRemaining int? required**

**hasMore bool = false optional**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public IReadOnlyList<GitHubNotificationThread> Threads { get; }` [#](#property-threads)

[GitHubNotificationModels.cs:112](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubNotificationModels.cs#L112)

Gets notification threads ordered by GitHub.

`public DateTimeOffset CheckedAtUtc { get; }` [#](#property-checkedatutc)

[GitHubNotificationModels.cs:115](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubNotificationModels.cs#L115)

Gets when the service last checked GitHub.

`public TimeSpan RecommendedPollInterval { get; }` [#](#property-recommendedpollinterval)

[GitHubNotificationModels.cs:118](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubNotificationModels.cs#L118)

Gets GitHub's minimum recommended polling interval.

`public int? RateLimitRemaining { get; }` [#](#property-ratelimitremaining)

[GitHubNotificationModels.cs:121](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubNotificationModels.cs#L121)

Gets the remaining REST rate limit reported by GitHub, when available.

`public bool HasMore { get; }` [#](#property-hasmore)

[GitHubNotificationModels.cs:124](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Telemetry/GitHub/GitHubNotificationModels.cs#L124)

Gets whether GitHub reported another page beyond the returned finite result.

<!-- PowerForge markdown artifact sha256:7A7C7002488CC6BC50B075A696AB3483AD71A3C28D58517FF721C6568F9995BE -->
