> ## Documentation Index
> Fetch the complete documentation index at: https://help.cryptolens.io/llms.txt
> Use this file to discover all available pages before exploring further.

# .NET: LicenseActivityBucket

> Signatures, models and behavior for SKM.V3.Models.LicenseActivityBucket in the .NET SDK 4.0.54.

The LicenseActivityBucket model used by the .NET SDK.

**Namespace:** `SKM.V3.Models`\
**Version:** 4.0.54. Both packages; all six documented target frameworks.

<CodeGroup>
  ```csharp C# theme={null}
  public class LicenseActivityBucket
  ```

  ```vb VB.NET theme={null}
  Public Class LicenseActivityBucket
  ```
</CodeGroup>

[Web API Reference](/api-reference/generated/model/LicenseActivityBucket)

## Properties

<a id="bucket-start-utc-0d8f81bd60" />

### BucketStartUtc

The start time of the 30-minute activity bucket.

<CodeGroup>
  ```csharp C# theme={null}
  public long BucketStartUtc { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property BucketStartUtc As Long
  ```
</CodeGroup>

**Type:** `long`

<a id="deactivation-count-d2f2073788" />

### DeactivationCount

The number of deactivation events in the bucket.

<CodeGroup>
  ```csharp C# theme={null}
  public long DeactivationCount { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property DeactivationCount As Long
  ```
</CodeGroup>

**Type:** `long`

<a id="first-event-utc-8b8ff4e92a" />

### FirstEventUtc

The first event time in the bucket.

<CodeGroup>
  ```csharp C# theme={null}
  public long FirstEventUtc { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property FirstEventUtc As Long
  ```
</CodeGroup>

**Type:** `long`

<a id="gap-from-previous-event-seconds-87845dc0cb" />

### GapFromPreviousEventSeconds

The gap, in seconds, between the first event in this bucket and the previous event for the same product, key, and machine code when available.

<CodeGroup>
  ```csharp C# theme={null}
  public int? GapFromPreviousEventSeconds { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property GapFromPreviousEventSeconds As Integer?
  ```
</CodeGroup>

**Type:** `Nullable<Int32>`

<a id="id-42caa316d0" />

### Id

A unique identifier of this bucket.

<CodeGroup>
  ```csharp C# theme={null}
  public long Id { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property Id As Long
  ```
</CodeGroup>

**Type:** `long`

<a id="key-b2f0cb7e2f" />

### Key

The license key string, if the key still exists.

<CodeGroup>
  ```csharp C# theme={null}
  public string Key { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property Key As String
  ```
</CodeGroup>

**Type:** `string`

<a id="key-id-828e6c4299" />

### KeyId

The license key ID.

<CodeGroup>
  ```csharp C# theme={null}
  public long KeyId { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property KeyId As Long
  ```
</CodeGroup>

**Type:** `long`

<a id="last-event-state-cea4ab0024" />

### LastEventState

The state code of the last event in the bucket.

<CodeGroup>
  ```csharp C# theme={null}
  public short LastEventState { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property LastEventState As Short
  ```
</CodeGroup>

**Type:** `Int16`

<a id="last-event-utc-e7012280f5" />

### LastEventUtc

The last event time in the bucket.

<CodeGroup>
  ```csharp C# theme={null}
  public long LastEventUtc { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property LastEventUtc As Long
  ```
</CodeGroup>

**Type:** `long`

<a id="machine-code-16a6809cce" />

### MachineCode

The machine code associated with this bucket.

<CodeGroup>
  ```csharp C# theme={null}
  public string MachineCode { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property MachineCode As String
  ```
</CodeGroup>

**Type:** `string`

<a id="product-id-733dc9e588" />

### ProductId

The id of the product.

<CodeGroup>
  ```csharp C# theme={null}
  public int ProductId { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property ProductId As Integer
  ```
</CodeGroup>

**Type:** `int`

<a id="refresh-count-6e79279c80" />

### RefreshCount

The number of activation refresh events in the bucket.

<CodeGroup>
  ```csharp C# theme={null}
  public long RefreshCount { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property RefreshCount As Long
  ```
</CodeGroup>

**Type:** `long`

## Constructors

<a id="ctor-d572e05c3c" />

### LicenseActivityBucket()

Creates an empty LicenseActivityBucket object. This constructor does not send an API request.

<CodeGroup>
  ```csharp C# theme={null}
  public LicenseActivityBucket()
  ```

  ```vb VB.NET theme={null}
  Public Sub New()
  ```
</CodeGroup>

[.NET SDK Reference](/libraries/dotnet-api) · [Reviewed Source Revision](https://github.com/Cryptolens/cryptolens-dotnet/tree/30aaf399ba53d9a111bee896c35bf557fa219394)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.