> ## 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.

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

```vb VB.NET theme={null}
Public Class LicenseActivityBucket
```

[Web API Reference](https://help.cryptolens.io/api-reference/generated/model/LicenseActivityBucket.md)

## Properties

### BucketStartUtc

The start time of the 30-minute activity bucket.

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

```vb VB.NET theme={null}
Public Property BucketStartUtc As Long
```

**Type:** `long`

### DeactivationCount

The number of deactivation events in the bucket.

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

```vb VB.NET theme={null}
Public Property DeactivationCount As Long
```

**Type:** `long`

### FirstEventUtc

The first event time in the bucket.

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

```vb VB.NET theme={null}
Public Property FirstEventUtc As Long
```

**Type:** `long`

### 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.

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

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

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

### Id

A unique identifier of this bucket.

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

```vb VB.NET theme={null}
Public Property Id As Long
```

**Type:** `long`

### Key

The license key string, if the key still exists.

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

```vb VB.NET theme={null}
Public Property Key As String
```

**Type:** `string`

### KeyId

The license key ID.

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

```vb VB.NET theme={null}
Public Property KeyId As Long
```

**Type:** `long`

### LastEventState

The state code of the last event in the bucket.

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

```vb VB.NET theme={null}
Public Property LastEventState As Short
```

**Type:** `Int16`

### LastEventUtc

The last event time in the bucket.

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

```vb VB.NET theme={null}
Public Property LastEventUtc As Long
```

**Type:** `long`

### MachineCode

The machine code associated with this bucket.

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

```vb VB.NET theme={null}
Public Property MachineCode As String
```

**Type:** `string`

### ProductId

The id of the product.

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

```vb VB.NET theme={null}
Public Property ProductId As Integer
```

**Type:** `int`

### RefreshCount

The number of activation refresh events in the bucket.

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

```vb VB.NET theme={null}
Public Property RefreshCount As Long
```

**Type:** `long`

## Constructors

### LicenseActivityBucket()

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

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

```vb VB.NET theme={null}
Public Sub New()
```

[.NET SDK Reference](https://help.cryptolens.io/libraries/dotnet-api.md) · [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.